diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-08 16:01:36 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-08 16:02:14 +0200 |
commit | 78e831a31c0ad31156457c7068726e3c0e93b266 (patch) | |
tree | dd6eb5c5b80c84f03416d8c8460bd20a872ee4ad /src/node_extensions.cc | |
parent | 1eb9fc5f336aa1f797aad4b3374bd5acbd31f19d (diff) | |
download | node-78e831a31c0ad31156457c7068726e3c0e93b266.tar.gz |
Don't use _snprintf() on Windows, it's not safe.
_snprintf() doesn't zero-terminate the buffer on overflow. Use the hand-rolled
version that lives in src/node_internals.h.
Diffstat (limited to 'src/node_extensions.cc')
-rw-r--r-- | src/node_extensions.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/node_extensions.cc b/src/node_extensions.cc index 7073538b0..bbd8111ed 100644 --- a/src/node_extensions.cc +++ b/src/node_extensions.cc @@ -24,9 +24,6 @@ #include "node_version.h" #include <string.h> #include <stdio.h> -#if defined(_MSC_VER) -#define snprintf _snprintf -#endif #undef NODE_EXT_LIST_START #undef NODE_EXT_LIST_ITEM |