Use snprintf() instead of sprintf_s().

The latter does not seem to work for MINGW.
This commit is contained in:
basil00
2018-07-03 09:37:14 +08:00
parent 8e44f26b0a
commit 822dca9c3f
+1 -1
View File
@@ -186,7 +186,7 @@ int __cdecl main(int argc, char **argv)
}
// Divert all traffic to/from `port', `proxy_port' and `alt_port'.
r = sprintf_s(filter, sizeof(filter),
r = snprintf(filter, sizeof(filter),
"tcp and "
"(tcp.DstPort == %d or tcp.DstPort == %d or tcp.DstPort == %d or "
"tcp.SrcPort == %d or tcp.SrcPort == %d or tcp.SrcPort == %d)",