summaryrefslogtreecommitdiffstats
path: root/nanohttp
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp')
-rw-r--r--nanohttp/nanohttp-client.c2
-rw-r--r--nanohttp/nanohttp-server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index 84c2676..f11fb28 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -63,7 +63,7 @@
#endif
#ifdef WIN32
-#define snprintf(buffer, num, s1, s2) sprintf(buffer, s1,s2)
+#define snprintf(buffer, num, ...) sprintf(buffer, __VA_ARGS__)
#endif
#include "nanohttp-logging.h"
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c
index fee63fc..df87dc1 100644
--- a/nanohttp/nanohttp-server.c
+++ b/nanohttp/nanohttp-server.c
@@ -160,7 +160,7 @@ static int _httpd_max_idle = 120;
HANDLE _httpd_connection_lock;
LPCTSTR _httpd_connection_lock_str;
#define strncasecmp(s1, s2, num) strncmp(s1, s2, num)
-#define snprintf(buffer, num, s1, s2) sprintf(buffer, s1,s2)
+#define snprintf(buffer, num, ...) sprintf(buffer, __VA_ARGS__)
#else
static int _httpd_terminate_signal = SIGINT;
static sigset_t thrsigset;