pkgsrc/comms/modemd/patches/patch-ac
2007-10-10 16:53:58 +00:00

24 lines
690 B
Text

$NetBSD: patch-ac,v 1.3 2007/10/10 16:53:58 rillig Exp $
--- incoming/ppp.c.orig 1996-09-10 00:35:12.000000000 +0000
+++ incoming/ppp.c 2007-10-10 16:49:36.000000000 +0000
@@ -46,8 +46,8 @@ static char copyright[] =
#include "mcap.h"
#include <sys/time.h>
#include <signal.h>
-
-#define EOF -1
+#include <stdio.h>
+#include <stdlib.h>
void ppp_detect (tty, ttyName)
int tty;
@@ -125,7 +125,7 @@ void ppp_detect (tty, ttyName)
if (!lbuf)
error ("Can't allocate space for login string.\n");
strcpy (lbuf, modemcap.program);
- strcat (lbuf, " ");
+ strcat (lbuf, " -- ");
strcat (lbuf, (char *)ibuf);
modemcap.program = lbuf;
return;