mirror of https://github.com/OpenVPN/openvpn-gui
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
parent
59dd758b96
commit
da6ed23618
2
proxy.c
2
proxy.c
|
@ -599,7 +599,7 @@ OnProxy(connection_t *c, char *line)
|
||||||
}
|
}
|
||||||
|
|
||||||
char cmd[128];
|
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';
|
cmd[sizeof(cmd) - 1] = '\0';
|
||||||
ManagementCommand(c, cmd, NULL, regular);
|
ManagementCommand(c, cmd, NULL, regular);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue