Re: Resend PATCH - setupapi add support for both Windows and Unix style line endings to setupapi parser
17 Jun
2003
17 Jun
'03
3:07 a.m.
On Mon, 16 Jun 2003, Steven Edwards wrote: : Does this need to be changed or is there something else wrong with this : patch? : - return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n'); : + return (ptr >= parser->end || *ptr == CONTROL_Z || *ptr == '\n' || : (*ptr == '\r'&& *(ptr + 1) == '\n')); Could overrun the buffer by looking one char too far if the last character of the file is '\r'. -- -- Todd Vierling <tv(a)pobox.com>
8216
Age (days ago)
8216
Last active (days ago)
0 comments
1 participants
participants (1)
-
Todd Vierling