X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fproctitle.c;h=82a0b8eda3433b6d5c271535eadacb3400f6b961;hb=1b2faf7409371da71c440704e3a75c34f7a9d750;hp=1862f0b5c3b9f36942c5646e27619c493726979a;hpb=45201a4c724923aae01ed891be9e125b229ad189;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