src: use standard conform snprintf on windows
authorKarl Skomski <mail@skomski.com>
Thu, 3 Sep 2015 08:10:30 +0000 (10:10 +0200)
committerRod Vagg <rod@vagg.org>
Sun, 6 Sep 2015 11:39:07 +0000 (21:39 +1000)
commiteba3d3dccd7100f969bbc4919d30ffec4c594fda
tree80c2abb426519f64ef11b06615504813fe6c33a1
parentcddbec231f86774bbbb78fb271894a8fcf4e8dc1
src: use standard conform snprintf on windows

The version used before returned -1 on truncation which does not conform
to the standard.

PR-URL: https://github.com/nodejs/node/pull/2404
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
src/node_internals.h
test/fixtures/throws_error6.js [new file with mode: 0644]
test/parallel/test-error-reporting.js