diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-11 08:49:18 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-11 08:49:18 +0000 |
commit | 3c839e76480fc0af3afb3899bd9e85b9d45ad92a (patch) | |
tree | b1c3f0ed06bc83c46d9cc2537ce19f18f9ab1225 | |
parent | 5c4a6c30ef367a77db035cd44def733e4ae02563 (diff) | |
download | fetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.tar.gz fetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.tar.bz2 fetchmail-3c839e76480fc0af3afb3899bd9e85b9d45ad92a.zip |
This refactored version works.
svn path=/trunk/; revision=3228
-rw-r--r-- | lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |