[SATDEVKIT-2522]Fixing comments 69/198069/1 accepted/tizen/unified/20190128.061258 submit/tizen/20190118.100509
authoralkasethi <alka.sethi@samsung.com>
Fri, 18 Jan 2019 07:50:24 +0000 (13:20 +0530)
committeralkasethi <alka.sethi@samsung.com>
Fri, 18 Jan 2019 07:50:24 +0000 (13:20 +0530)
Change-Id: I214472e937649d8a5d5e05a5a524d86eef12c073
Signed-off-by: alkasethi <alka.sethi@samsung.com>
src/services.c

index 284db2c84da44da6217d319a1f816cd9ca0ee6f9..d3d83ff5555bc6a390ae3efd4caf318f74ddb1c0 100644 (file)
@@ -1425,7 +1425,7 @@ int request_extcmd_to_plugin(const char* in_buf) {
        if (tokens[i] == NULL){
                continue;
        }
-        if (strlen(full_cmd) + strlen(tokens[i]) + 1 >= ENV_BUF_MAX) {
+        if (strlen(full_cmd) + strlen(tokens[i]) + 2 >= ENV_BUF_MAX) {
             break;
         }
         strncat(full_cmd, " ",1);