MFC r301235:

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)
This commit is contained in:
Pedro F. Giffuni 2016-06-06 13:31:28 +00:00
parent 43d6a8ab09
commit 67f069c73e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=301506

View File

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