From 40485cc81f4f87f2fd642655369abc9cd9cbd9d3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 23 Jul 2007 19:09:19 +0000 Subject: r24008: Fix Bug 4792. Thanks to David Gajewski and to Timur I. Bakeyev for bugging me :-) Volker (This used to be commit 59aef0451bed536d5cd72f2b26a0595947e94343) --- source3/lib/pidfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/pidfile.c b/source3/lib/pidfile.c index 5506b46961..b6a8e02b49 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"); } } -- cgit