From owner-cvs-usrsbin Fri Apr 5 18:00:27 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA28399 for cvs-usrsbin-outgoing; Fri, 5 Apr 1996 18:00:27 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA28380 Fri, 5 Apr 1996 18:00:18 -0800 (PST) Date: Fri, 5 Apr 1996 18:00:18 -0800 (PST) From: "Andrey A. Chernov" Message-Id: <199604060200.SAA28380@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/ppp chat.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 96/04/05 18:00:18 Modified: usr.sbin/ppp chat.c Log: Here is a patch for a little bug in the WaitForString routine. The problem is when the matched string spans the end of the inbuff. This fix allocates twice the IBSIZE so that it can keep the last and the current text to search in the inbuff so that the match won't fail if it gets truncated by the read. It also warns if the search string is to long and truncates it. Submitted by: Dough Ambrisco Revision Changes Path 1.9 +14 -4 src/usr.sbin/ppp/chat.c