summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-12-16 07:57:55 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-12-16 07:58:33 -0500
commitd8ac1e7ac9d659717db884ba02c3aa1caeffb60c (patch)
treedd78cd8a4f8a39f716421247d55dba249443357b /src
parent7bbc283307171cc325de7b380a3af9bf7e7bdc57 (diff)
downloadsssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.tar.gz
sssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.tar.xz
sssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.zip
Fix invalid sizeof in pidfile
https://fedorahosted.org/sssd/ticket/730
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) {