From: Volker Lendecke Date: Mon, 23 Jul 2007 19:09:19 +0000 (+0000) Subject: r24008: Fix Bug 4792. Thanks to David Gajewski and to X-Git-Tag: samba-4.0.0alpha6~801^2~5269 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40485cc81f4f87f2fd642655369abc9cd9cbd9d3;p=thirdparty%2Fsamba.git r24008: Fix Bug 4792. Thanks to David Gajewski and to Timur I. Bakeyev for bugging me :-) Volker (This used to be commit 59aef0451bed536d5cd72f2b26a0595947e94343) --- diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index 5506b46961d..b6a8e02b49d 100644 --- a/source3/lib/pidfile.c +++ b/source3/lib/pidfile.c @@ -105,7 +105,7 @@ void pidfile_create(const char *program_name) short_configfile++; } if (asprintf(&name, "%s-%s", program_name, - short_configfile+1) == -1) { + short_configfile) == -1) { smb_panic("asprintf failed"); } }