commit | f659d2cd40b92a4cbc20a7402e86f1a9e7b36326 | [log] [download] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Jun 26 17:45:00 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Fri Jun 26 17:45:00 2015 +0200 |
tree | 98430d17de3c6b4dcb66f4b5b571bc6e12dc1efa | |
parent | fc36708697866a26effa3c03045f844df9f94ebc [diff] |
Tune up Windows snprintf() support When we build with Visual Studio in debug mode, the invalid parameter handler aborts the application (and offers to debug it) when n is 0. We want to just return -1 instead (as calls with n == 0 are expected and happen in our tests).