diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-23 19:09:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:28:55 -0500 |
commit | 40485cc81f4f87f2fd642655369abc9cd9cbd9d3 (patch) | |
tree | b87cfc5b8dd92bd546ec981c6f816d2491e60935 /source3/lib | |
parent | 1bbb6e5a0b4c25139472183d271fb5f3598aab77 (diff) | |
download | samba-40485cc81f4f87f2fd642655369abc9cd9cbd9d3.tar.gz samba-40485cc81f4f87f2fd642655369abc9cd9cbd9d3.tar.bz2 samba-40485cc81f4f87f2fd642655369abc9cd9cbd9d3.zip |
r24008: Fix Bug 4792. Thanks to David Gajewski <dgajews@math.utoledo.edu> and to
Timur I. Bakeyev for bugging me :-)
Volker
(This used to be commit 59aef0451bed536d5cd72f2b26a0595947e94343)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/pidfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } |