On Sat, Jul 23, 2011 at 3:51 PM, Christian Franke <[email protected]> wrote: > Hi, > > On Jun 23, 2011, Christian Franke wrote: >> Hi, >> >> thanks for providing mingw-w64. >> >> I found this when I tried to compile smartmontools on Cygwin with >> i686-w64-mingw32 and _USE_MINGW_ANSI_STDIO set: >> >> __mingw_*scanf() always(!) segfaults if a char or string format >> (without malloc option) is used. This is because optimize_alloc() is >> always called with (pstr - str) as argument even if pstr is NULL. >> >> Proposed patch attached, smoke-tested only with a few common cases. >> > > Any comments so far? > Wrong list? > Ugly patch ?-)
Correct list, patch not ugly IMO. Seems fine to me at first glance, but Kai needs to review it thoroughly (IIRC, he authored the mingw_scanf stuff) > > Thanks, > Christian -- O.S. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
