From 40b787d54603222746e7d1f503d4d602dc6f9bfb Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 30 Jan 1997 20:18:57 +0000 Subject: Fix Johan Vromans's bug. svn path=/trunk/; revision=844 --- driver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index aad43332..fe8a0d70 100644 --- a/driver.c +++ b/driver.c @@ -444,6 +444,8 @@ char *realname; /* real name of host */ /* leave extra room for reply_hack to play with */ line = realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1); strcat(line, buf); + if (line[0] == '\r' && line[1] == '\n') + break; } while /* we may need to grab RFC822 continuations */ ((ch = SockPeek(sockfp)) == ' ' || ch == '\t'); -- cgit v1.2.3