[PATCH 0/1] MR352: cmd: Don't loop infinitely on NUL.

eric pouech (@epo) wine at gitlab.winehq.org
Thu Jun 30 09:45:15 CDT 2022


the changes to fgets don't look fully right
you should return the characters in bufA until the NUL character (as done for \n) if there are some, and NULL in case there are none...
(it works in your test case as the string 'a b c' is terminated by the new line)

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/352#note_3062



More information about the wine-devel mailing list