[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)
More information about the wine-devel