From 733784d7dd3d27ed52274ee3c6f05d673da5fbf7 Mon Sep 17 00:00:00 2001 From: "roberto@djangocloud" Date: Wed, 19 Oct 2011 16:13:10 +1000 Subject: [PATCH] another procname fix... --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index f2972e2c..126c3708 100644 --- a/utils.c +++ b/utils.c @@ -3238,7 +3238,7 @@ void uwsgi_set_processname(char *name) { strncat(uwsgi.orig_argv[0], uwsgi.procname_append, uwsgi.max_procname-(amount+1)); } - memset(uwsgi.orig_argv[0]+amount, ' ', uwsgi.max_procname-(amount)); + memset(uwsgi.orig_argv[0]+amount+1, ' ', uwsgi.max_procname-(amount-1)); #elif defined(__FreeBSD__) if (uwsgi.procname_prefix) { if (!uwsgi.procname_append) {