diff options
-rw-r--r-- | usr.sbin/ppp/chat.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 5810441..65f377e 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -18,7 +18,7 @@ * Columbus, OH 43221 * (614)451-1883 * - * $Id: chat.c,v 1.29 1997/07/14 01:41:24 brian Exp $ + * $Id: chat.c,v 1.30 1997/08/17 20:38:43 brian Exp $ * * TODO: * o Support more UUCP compatible control sequences. @@ -354,12 +354,13 @@ WaitforString(char *estr) flush_log(); return(MATCH); } - } else { + } else s = str; - if (inp == inbuff+ IBSIZE) { - bcopy(inp - 100, inbuff, 100); - inp = inbuff + 100; - } + if (inp == inbuff + IBSIZE) { + bcopy(inp - 100, inbuff, 100); + inp = inbuff + 100; + } + if (s == str) { for (i = 0; i < numaborts; i++) { /* Look for Abort strings */ int len; char *s1; |