summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-07 23:01:25 +0000
committerbrian <brian@FreeBSD.org>1997-05-07 23:01:25 +0000
commitc0df205f61114f6e2e8e0e81b742de41d87cfcca (patch)
tree47c107aa11ed1373a1bdb81a124d4c753409711b /usr.sbin/ppp/command.c
parent605e9c6e8fbf82421ae4b271a7a7d47664f9062e (diff)
downloadFreeBSD-src-c0df205f61114f6e2e8e0e81b742de41d87cfcca.zip
FreeBSD-src-c0df205f61114f6e2e8e0e81b742de41d87cfcca.tar.gz
Allow up to 40 args in the chat script (was 20).
Ignore subsequent args rather than scribbling. PR: 1952 Submitted by: Mikael Hybsch <micke@free.dynas.se>
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 032fd2a..f861f4fc 100644
--- a/usr.sbin/ppp/command.c
+++ b/usr.sbin/ppp/command.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: command.c,v 1.38 1997/04/14 23:48:12 brian Exp $
+ * $Id: command.c,v 1.39 1997/04/21 01:01:40 brian Exp $
*
*/
#include <sys/types.h>
@@ -41,8 +41,8 @@
#include <net/route.h>
#include "os.h"
#include <paths.h>
+#include "chat.h"
-extern int MakeArgs();
extern void Cleanup(), TtyTermMode(), PacketMode();
extern int EnableCommand(), DisableCommand(), DisplayCommand();
extern int AcceptCommand(), DenyCommand();
@@ -555,7 +555,7 @@ int prompt;
if (cp)
*cp = '\0';
{
- argc = MakeArgs(buff, &vector);
+ argc = MakeArgs(buff, vector, VECSIZE(vector));
argv = vector;
if (argc > 0)
OpenPOWER on IntegriCloud