diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-16 07:57:55 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-16 07:58:33 -0500 |
commit | d8ac1e7ac9d659717db884ba02c3aa1caeffb60c (patch) | |
tree | dd78cd8a4f8a39f716421247d55dba249443357b /src/util | |
parent | 7bbc283307171cc325de7b380a3af9bf7e7bdc57 (diff) | |
download | sssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.tar.gz sssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.tar.bz2 sssd-d8ac1e7ac9d659717db884ba02c3aa1caeffb60c.zip |
Fix invalid sizeof in pidfile
https://fedorahosted.org/sssd/ticket/730
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c index 4767f47d..1e8b148d 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) { |