Add a note about broken scanf() implementations.

This commit is contained in:
Markus F.X.J. Oberhumer 2008-04-02 16:34:31 +02:00
parent 8afeb56c11
commit ca368e0f9b

View File

@ -240,7 +240,8 @@ void ElfLinker::preprocessSymbols(char *start, char *end)
#if 0
else if (sscanf(start, "%x%*8c %1023s %*x %1023s",
#else
// work around broken scanf implementations
// work around broken scanf() implementations
// http://bugs.winehq.org/show_bug.cgi?id=10401 (fixed in Wine 0.9.58)
else if (sscanf(start, "%x%*c%*c%*c%*c%*c%*c%*c%*c %1023s %*x %1023s",
#endif
&offset, section, symbol) == 3)