summaryrefslogtreecommitdiffstats
path: root/base/setproctitle_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/setproctitle_linux.c')
-rw-r--r--base/setproctitle_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/setproctitle_linux.c b/base/setproctitle_linux.c
index 205be2b..3544d3e 100644
--- a/base/setproctitle_linux.c
+++ b/base/setproctitle_linux.c
@@ -91,7 +91,7 @@ void setproctitle(const char* fmt, ...) {
memset(g_main_argv[0], 0, avail_size);
va_start(ap, fmt);
if (fmt[0] == '-') {
- vsnprintf(g_main_argv[0], avail_size, fmt, ap);
+ vsnprintf(g_main_argv[0], avail_size, &fmt[1], ap);
} else {
size_t size = snprintf(g_main_argv[0], avail_size, "%s ", g_orig_argv0);
if (size < avail_size)