summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 4767f47d7..1e8b148d7 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -107,7 +107,7 @@ int pidfile(const char *path, const char *name)
ssize_t len;
ssize_t size;
ssize_t written;
- ssize_t pidlen = sizeof(pid_str - 1);
+ ssize_t pidlen = sizeof(pid_str) - 1;
file = talloc_asprintf(NULL, "%s/%s.pid", path, name);
if (!file) {