From e391596514b033ad864f5a2ad65564cadaf19c52 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 2 Jan 1999 01:58:04 +0000 Subject: Gunther Leber's fixes. svn path=/trunk/; revision=2311 --- fetchmail.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 88e1a311..79edffe5 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -217,12 +217,12 @@ int main (int argc, char **argv) /* set up to do lock protocol */ #define FETCHMAIL_PIDFILE "fetchmail.pid" - xalloca(tmpbuf, char *, !getuid? - (strlen(PID_DIR) + strlen(FETCHMAIL_PIDFILE) + 2): - (strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3)); - if (!getuid()) + if (!getuid()) { + xalloca(tmpbuf, char *, + strlen(PID_DIR) + strlen(FETCHMAIL_PIDFILE) + 2); sprintf(tmpbuf, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE); - else { + } else { + xalloca(tmpbuf, char *, strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3); strcpy(tmpbuf, home); strcat(tmpbuf, "/."); strcat(tmpbuf, FETCHMAIL_PIDFILE); -- cgit v1.2.3