summaryrefslogtreecommitdiff
path: root/ui/cli
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2016-07-16 13:06:28 -0400
committerMichael Mann <mmann78@netscape.net>2016-07-17 01:47:46 +0000
commit8cd167a06cdba22f4b1efeb8929228d387ea5f23 (patch)
tree92453da8e5b139d1783fad4ab9362dc8ada2c88f /ui/cli
parent379c3c6fde8a35648b570e714fc8b2ea7eead22e (diff)
downloadwireshark-8cd167a06cdba22f4b1efeb8929228d387ea5f23.tar.gz
Fix sscanf VS Code Analysis warnings.
Some needed to check return value, others were converted to use strtoul. Change-Id: I55aae216f95362b67e006f6e682abbd5ae2c8dcc Reviewed-on: https://code.wireshark.org/review/16502 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/cli')
-rw-r--r--ui/cli/tap-follow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/cli/tap-follow.c b/ui/cli/tap-follow.c
index 9d2b2d0cc9..50ab9b97f9 100644
--- a/ui/cli/tap-follow.c
+++ b/ui/cli/tap-follow.c
@@ -345,7 +345,7 @@ follow_arg_filter(const char **opt_argp, follow_info_t *follow_info)
cli_follow_info_t* cli_follow_info = (cli_follow_info_t*)follow_info->gui_data;
gboolean is_ipv6;
- if (sscanf(*opt_argp, ",%u%n", &cli_follow_info->stream_index, &len) == 1 &&
+ if (sscanf(*opt_argp, ",%d%n", &cli_follow_info->stream_index, &len) == 1 &&
((*opt_argp)[len] == 0 || (*opt_argp)[len] == ','))
{
*opt_argp += len;