]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and to
authorVolker Lendecke <vlendec@samba.org>
Mon, 23 Jul 2007 19:09:19 +0000 (19:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:55 +0000 (12:28 -0500)
Timur I. Bakeyev for bugging me :-)

Volker
(This used to be commit 59aef0451bed536d5cd72f2b26a0595947e94343)

source3/lib/pidfile.c

index 5506b46961ddbbe9305a4d0fcabed52bb905b7ee..b6a8e02b49dbd95e160bf9bee341191ad00fb19e 100644 (file)
@@ -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");
                }
        }