From 2815b70eaa6f8722598fc2f0ad62b6cbbe430c2d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 19 Dec 1998 19:43:59 +0000 Subject: Minor corrections. svn path=/trunk/; revision=2286 --- fetchmail.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 66f5043b..1bdccaa2 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -217,7 +217,9 @@ int main (int argc, char **argv) /* set up to do lock protocol */ #define FETCHMAIL_PIDFILE "fetchmail.pid" - xalloca(tmpbuf, char *, strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3); + xalloca(tmpbuf, char *, !getuid? + (strlen(PID_DIR) + strlen(FETCHMAIL_PIDFILE) + 2): + (strlen(home) + strlen(FETCHMAIL_PIDFILE) + 3)); if (!getuid()) sprintf(tmpbuf, "%s/%s", PID_DIR, FETCHMAIL_PIDFILE); else { -- cgit v1.2.3