diff options
-rw-r--r-- | src/util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c index 8c22dbefa9..d1120c60a5 100644 --- a/src/util.c +++ b/src/util.c @@ -601,6 +601,7 @@ int get_process_cmdline(pid_t pid, size_t max_length, char **line) { break; *(k++) = ' '; + left--; space = false; } @@ -608,6 +609,7 @@ int get_process_cmdline(pid_t pid, size_t max_length, char **line) { break; *(k++) = (char) c; + left--; } else space = true; } |