change "%S" to "%ls" to silence mingw warning:

proxy.c:602:32: warning: ISO C does not support the ‘%S’ ms_printf format [-Wformat=]
pull/151/head
Ilya Shipitsin 2017-03-25 13:42:27 +05:00
parent 59dd758b96
commit da6ed23618
1 changed files with 1 additions and 1 deletions

View File

@ -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);