aboutsummaryrefslogtreecommitdiffstats
path: root/lock.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-11 08:49:18 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-11 08:49:18 +0000
commit3c839e76480fc0af3afb3899bd9e85b9d45ad92a (patch)
treeb1c3f0ed06bc83c46d9cc2537ce19f18f9ab1225 /lock.c
parent5c4a6c30ef367a77db035cd44def733e4ae02563 (diff)
downloadfetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.tar.gz
fetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.tar.bz2
fetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.zip
This refactored version works.
svn path=/trunk/; revision=3228
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)