summaryrefslogtreecommitdiff
path: root/source3/lib/pidfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/pidfile.c')
-rw-r--r--source3/lib/pidfile.c2
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");
}
}