X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fproctitle.c;h=82a0b8eda3433b6d5c271535eadacb3400f6b961;hb=6c4c397f94ec5f5df6bcc178fb5fa4e84d3505fc;hp=1862f0b5c3b9f36942c5646e27619c493726979a;hpb=ba1c173f544383aa6553a75dee6e6858d8f243a4;p=libucw.git diff --git a/ucw/proctitle.c b/ucw/proctitle.c index 1862f0b5..82a0b8ed 100644 --- a/ucw/proctitle.c +++ b/ucw/proctitle.c @@ -7,8 +7,8 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/process.h" +#include +#include #include #include @@ -53,8 +53,12 @@ setproctitle_init(int argc, char **argv) if (spt_end+1 == oldenv[i]) spt_end = oldenv[i] + strlen(oldenv[i]); + /* Copy all arguments */ + for (i=0; i