X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=ucw%2Fproctitle.c;h=82a0b8eda3433b6d5c271535eadacb3400f6b961;hb=6c4c397f94ec5f5df6bcc178fb5fa4e84d3505fc;hp=c1f8ff78c00e1ee74d7367a8b6846285582f5bf3;hpb=accd8b1d1844b0f9634b1e6a6d1f1be9d63eece1;p=libucw.git diff --git a/ucw/proctitle.c b/ucw/proctitle.c index c1f8ff78..82a0b8ed 100644 --- a/ucw/proctitle.c +++ b/ucw/proctitle.c @@ -7,7 +7,8 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" +#include +#include #include #include @@ -52,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