From da6ed2361849ca5b09b74b7c51904de497396778 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 25 Mar 2017 13:42:27 +0500 Subject: [PATCH] change "%S" to "%ls" to silence mingw warning: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit proxy.c:602:32: warning: ISO C does not support the ā€˜%Sā€™ ms_printf format [-Wformat=] --- proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.c b/proxy.c index de4fcb4..ea0de3f 100644 --- a/proxy.c +++ b/proxy.c @@ -599,7 +599,7 @@ OnProxy(connection_t *c, char *line) } char cmd[128]; - snprintf(cmd, sizeof(cmd), "proxy %s %S %S", type, addr, port); + snprintf(cmd, sizeof(cmd), "proxy %s %ls %ls", type, addr, port); cmd[sizeof(cmd) - 1] = '\0'; ManagementCommand(c, cmd, NULL, regular);