diff --git a/src/win/strings.c b/src/win/strings.c index e39629acb..07d41eeb7 100644 --- a/src/win/strings.c +++ b/src/win/strings.c @@ -29,7 +29,7 @@ nats_asprintf(char **newStr, const char *fmt, ...) do { va_start(ap, fmt); - n = vsnprintf(str, size, fmt, ap); + n = nats_vsnprintf(str, size, fmt, ap); va_end(ap); if ((n < 0) || (n >= size)) @@ -128,7 +128,7 @@ nats_snprintf(char *buffer, size_t countszt, char *format, ...) memset(buffer, 0, count); va_start(ap, format); - len = (int) vsnprintf(buffer, count, format, ap); + len = (int) nats_vsnprintf(buffer, count, format, ap); va_end(ap); if ((len == count) || (len < 0)) {