Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3011)

Unified Diff: base/setproctitle_linux.c

Issue 218033: Linux: fix a process name setting bug that doesn't currently affect us. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/setproctitle_linux.c
===================================================================
--- base/setproctitle_linux.c (revision 27026)
+++ base/setproctitle_linux.c (working copy)
@@ -91,7 +91,7 @@
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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698