Skip to content

Commit

Permalink
Use snprintf() instead of sprintf_s().
Browse files Browse the repository at this point in the history
The latter does not seem to work for MINGW.
  • Loading branch information
basil00 committed Jul 3, 2018
1 parent 8e44f26 commit 822dca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/streamdump/streamdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit 822dca9

Please sign in to comment.