From 3c839e76480fc0af3afb3899bd9e85b9d45ad92a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 11 Mar 2001 08:49:18 +0000 Subject: This refactored version works. svn path=/trunk/; revision=3228 --- lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lock.c') diff --git a/lock.c b/lock.c index 5780c056..35abade1 100644 --- a/lock.c +++ b/lock.c @@ -26,11 +26,11 @@ void lock_setup(void) /* set up to do lock protocol */ #define FETCHMAIL_PIDFILE "fetchmail.pid" if (!getuid()) { - xalloca(lockfile, char *, + lockfile = (char *)xmalloc( sizeof(PID_DIR) + sizeof(FETCHMAIL_PIDFILE)); sprintf(lockfile, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE); } else { - xalloca(lockfile, char *, strlen(fmhome) + sizeof(FETCHMAIL_PIDFILE) + 2); + lockfile = (char *)xmalloc(strlen(fmhome)+sizeof(FETCHMAIL_PIDFILE)+2); strcpy(lockfile, fmhome); strcat(lockfile, "/"); if (fmhome == home) -- cgit v1.2.3