diff options
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 141bd92ff0..fa3b5d763d 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -91,7 +91,8 @@ inline static int snprintf(char* buf, unsigned int len, const char* fmt, ...) { va_list ap; va_start(ap, fmt); int n = _vsprintf_p(buf, len, fmt, ap); - if (len) buf[len - 1] = '\0'; + if (len) + buf[len - 1] = '\0'; va_end(ap); return n; } |