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_crypto.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_crypto.cc')
-rw-r--r-- | src/node_crypto.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b99d9b074..134e58800 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -29,7 +29,6 @@ #include <string.h> #ifdef _MSC_VER -#define snprintf _snprintf #define strcasecmp _stricmp #endif |