aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lock.c')
-rw-r--r--lock.c4
1 files changed, 2 insertions, 2 deletions
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)