Skip to content

Commit 822dca9

Browse files
committed
Use snprintf() instead of sprintf_s().
The latter does not seem to work for MINGW.
1 parent 8e44f26 commit 822dca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/streamdump/streamdump.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int __cdecl main(int argc, char **argv)
186186
}
187187

188188
// Divert all traffic to/from `port', `proxy_port' and `alt_port'.
189-
r = sprintf_s(filter, sizeof(filter),
189+
r = snprintf(filter, sizeof(filter),
190190
"tcp and "
191191
"(tcp.DstPort == %d or tcp.DstPort == %d or tcp.DstPort == %d or "
192192
"tcp.SrcPort == %d or tcp.SrcPort == %d or tcp.SrcPort == %d)",

0 commit comments

Comments
 (0)