diff --git a/src/utils/process_utils/src/process_utils.cpp b/src/utils/process_utils/src/process_utils.cpp index 2d29d6a2..b9e23e53 100644 --- a/src/utils/process_utils/src/process_utils.cpp +++ b/src/utils/process_utils/src/process_utils.cpp @@ -93,7 +93,7 @@ int ADUC_LaunchChildProcess(const std::string& command, std::vector { char buffer[1024]; ssize_t count; - count = read(filedes[READ_END], buffer, sizeof(buffer)); + count = read(filedes[READ_END], buffer, sizeof(buffer) - 1); if (count == -1) {