aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-25 14:00:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-25 14:00:16 +0000
commit27ec8835f382c361fd2e527afc31278a767f4954 (patch)
treee574f431d50ee9ecfa2553d637bc049ccc82396e
parentfedc30e5c42a5b3dc3e5bf1dffd8dde0ad42e436 (diff)
downloadfetchmail-27ec8835f382c361fd2e527afc31278a767f4954.tar.gz
fetchmail-27ec8835f382c361fd2e527afc31278a767f4954.tar.bz2
fetchmail-27ec8835f382c361fd2e527afc31278a767f4954.zip
Fix reply bug.
svn path=/trunk/; revision=826
-rw-r--r--driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 0cecb23e..9a61ecaa 100644
--- a/driver.c
+++ b/driver.c
@@ -433,7 +433,8 @@ char *realname; /* real name of host */
if (!SockGets(buf, sizeof(buf)-1, sockfp))
return(PS_SOCKET);
vtalarm(ctl->server.timeout);
- line = realloc(line, strlen(line) + strlen(buf) + 1);
+ /* leave extra room for reply_hack to play with */
+ line = realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1);
strcat(line, buf);
} while
/* we may need to grab RFC822 continuations */