Commit 057fbb58 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

util: fix space calculation in get_process_cmdline()

parent ed2d7a44
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment