dhclient(1): correct obvious mismatch in get_char().

Correct switch between current and previous line buffers when
encountering a carriage return in the input.

CID:		1305719
Obtained from:	OpenBSD (CVS rev. 1.30)
MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2016-06-03 03:40:39 +00:00
parent 46e7e6bd41
commit 32ceeb31a1

View File

@ -97,8 +97,8 @@ get_char(FILE *cfile)
cur_line = line2; cur_line = line2;
prev_line = line1; prev_line = line1;
} else { } else {
cur_line = line2; cur_line = line1;
prev_line = line1; prev_line = line2;
} }
line++; line++;
lpos = 1; lpos = 1;