aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-01-02 01:58:04 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-01-02 01:58:04 +0000
commite391596514b033ad864f5a2ad65564cadaf19c52 (patch)
tree6658a1b57bbd799028d4ef6b0d39509712e0ef69 /fetchmail.c
parent5c664416fc35801ccb673e21bb2cbd312dec79b4 (diff)
downloadfetchmail-e391596514b033ad864f5a2ad65564cadaf19c52.tar.gz
fetchmail-e391596514b033ad864f5a2ad65564cadaf19c52.tar.bz2
fetchmail-e391596514b033ad864f5a2ad65564cadaf19c52.zip
Gunther Leber's fixes.
svn path=/trunk/; revision=2311
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c10
1 files changed, 5 insertions, 5 deletions
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);