From 3d0d161fa09f54838333bc8610f70110015725b0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 25 Jul 2001 07:18:36 +0000 Subject: HMH's trivial fixes. svn path=/trunk/; revision=3420 --- lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lock.c') diff --git a/lock.c b/lock.c index a4573493..a9fcb2ae 100644 --- a/lock.c +++ b/lock.c @@ -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); -- cgit v1.2.3