Changeset 243 for cpp


Ignore:
Timestamp:
05/13/14 18:56:16 (10 years ago)
Author:
Maciej Komosinski
Message:

_vscprintf() was missing +1 for the terminating null character which resulted in a rare endless loop (Windows only)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/stl-util.cpp

    r220 r243  
    1919        //almost like SString::sprintf, but there is no common code to share because SString can use its directWrite to avoid double allocating/copying
    2020#ifdef USE_VSCPRINTF
    21         size=_vscprintf(format, ap);
     21        size=_vscprintf(format, ap)+1; //+1 for terminating null character
    2222#endif
    2323
Note: See TracChangeset for help on using the changeset viewer.