diff options
author | ache <ache@FreeBSD.org> | 1996-03-08 13:22:23 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-08 13:22:23 +0000 |
commit | 53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b (patch) | |
tree | 13faf37531eda1356481a2b8bad3cf8a1776d0ae /usr.sbin/ppp/command.c | |
parent | 8d299fcc23c4b89811dcad056e9db5cbaaaa5ed8 (diff) | |
download | FreeBSD-src-53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b.zip FreeBSD-src-53c7b9f85354394ae5d8d9f88d5cffbb319a9e3b.tar.gz |
Prevent dial cycling on the last phone from the list, make phone list copy
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 361c1f6..8f86dd8 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.14 1996/01/30 20:04:28 phk Exp $ + * $Id: command.c,v 1.15 1996/03/08 09:03:04 ache Exp $ * */ #include <sys/types.h> @@ -842,7 +842,8 @@ int param; break; case VAR_PHONE: strncpy(VarPhoneList, *argv, sizeof(VarPhoneList)-1); - VarNextPhone = VarPhoneList; + strcpy(VarPhoneCopy, VarPhoneList); + VarNextPhone = VarPhoneCopy; break; } } |