]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix line buffer handling
authorTed Lemon <source@isc.org>
Tue, 17 Mar 1998 06:09:11 +0000 (06:09 +0000)
committerTed Lemon <source@isc.org>
Tue, 17 Mar 1998 06:09:11 +0000 (06:09 +0000)
common/conflex.c

index eedfa054b662f10c1ee36c29caaf4ec621d011b0..b58a155040feb023689ad3a25ecf341d8f2bd2c1 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.29 1997/10/29 18:32:53 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.30 1998/03/17 06:09:11 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -104,14 +104,14 @@ static int get_char (cfile)
                                cur_line = line2;
                                prev_line = line1;
                        } else {
-                               cur_line = line2;
-                               prev_line = line1;
+                               cur_line = line1;
+                               prev_line = line2;
                        }
                        line++;
                        lpos = 1;
                        cur_line [0] = 0;
                } else if (c != EOF) {
-                       if (lpos <= 81) {
+                       if (lpos <= 80) {
                                cur_line [lpos - 1] = c;
                                cur_line [lpos] = 0;
                        }