diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-07-25 07:18:36 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-07-25 07:18:36 +0000 |
commit | 3d0d161fa09f54838333bc8610f70110015725b0 (patch) | |
tree | f8311254fef9812232cb937cc95de40923b1fa82 /lock.c | |
parent | a4814f15939f2648b39270d3f7fb53c053ed0bb6 (diff) | |
download | fetchmail-3d0d161fa09f54838333bc8610f70110015725b0.tar.gz fetchmail-3d0d161fa09f54838333bc8610f70110015725b0.tar.bz2 fetchmail-3d0d161fa09f54838333bc8610f70110015725b0.zip |
HMH's trivial fixes.
svn path=/trunk/; revision=3420
Diffstat (limited to 'lock.c')
-rw-r--r-- | lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -31,7 +31,7 @@ void lock_setup(void) #define FETCHMAIL_PIDFILE "fetchmail.pid" if (!getuid()) { lockfile = (char *)xmalloc( - sizeof(PID_DIR) + sizeof(FETCHMAIL_PIDFILE)); + sizeof(PID_DIR) + sizeof(FETCHMAIL_PIDFILE) + 1); sprintf(lockfile, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE); } else { lockfile = (char *)xmalloc(strlen(fmhome)+sizeof(FETCHMAIL_PIDFILE)+2); |