X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fprocess-util.c;h=359c3a4e4e00dfd015c2802ffd1e1e37ff227704;hp=cd9c0f7e5d5155abf9ea63fed1d6b7b292112ec4;hb=2a4a438b7c7306da5f698d2247e646263f3c45c0;hpb=35eec258c4523c92fe985d764198b266ebc3881a diff --git a/src/basic/process-util.c b/src/basic/process-util.c index cd9c0f7e5..359c3a4e4 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -235,14 +235,14 @@ int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char * return h; if (max_length == 0) - r = strjoin("[", t, "]", NULL); + r = strjoin("[", t, "]"); else { size_t l; l = strlen(t); if (l + 3 <= max_length) - r = strjoin("[", t, "]", NULL); + r = strjoin("[", t, "]"); else if (max_length <= 6) { r = new(char, max_length); @@ -262,7 +262,7 @@ int get_process_cmdline(pid_t pid, size_t max_length, bool comm_fallback, char * e--; *e = 0; - r = strjoin("[", t, "...]", NULL); + r = strjoin("[", t, "...]"); } } if (!r)