Correct PROFILE_Load for the last line in the file

Jeremy White jwhite at codeweavers.com
Mon Aug 1 14:36:05 CDT 2005


The last line in an autorun.inf file I'm parsing has
no trailing \r or \n; this causes us to not trim
any trailing whitespace and incorrectly increment
our end pointer by one, adding garbage to the line.

This patch correctly handles private profile files which do not
have final trailing whitespace.

Cheers,

Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trim.diff
Type: text/x-patch
Size: 1118 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050801/0efb6b84/trim.bin


More information about the wine-patches mailing list