Skip to content

Commit

Permalink
PR feedback: nats_vsnprintf, #2
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Jun 7, 2023
1 parent e92657b commit 338951d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/win/strings.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 338951d

Please sign in to comment.