diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-10-25 11:52:28 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-10-26 21:45:03 +0000 |
commit | 8d0af2f57826b309404c5b7f3b02aaf5b3171f27 (patch) | |
tree | 40c0fa2aae111de1484854a48c8bf337d35be854 /ui/gtk/sctp_graph_dlg.c | |
parent | dab4ea552dbeccbb403b6aff701a9de3bc25a64a (diff) | |
download | wireshark-8d0af2f57826b309404c5b7f3b02aaf5b3171f27.tar.gz |
Gtk: remove atoi calls and use ws_strtoi functions.
Change-Id: Ie38bdd27d9e3810e3a64b985dfd5621a3aa6d073
Reviewed-on: https://code.wireshark.org/review/18445
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/sctp_graph_dlg.c')
-rw-r--r-- | ui/gtk/sctp_graph_dlg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/gtk/sctp_graph_dlg.c b/ui/gtk/sctp_graph_dlg.c index 0a59191015..9a6399e8e7 100644 --- a/ui/gtk/sctp_graph_dlg.c +++ b/ui/gtk/sctp_graph_dlg.c @@ -29,7 +29,7 @@ #include <gtk/gtk.h> - +#include <wsutil/strtoi.h> #include "ui/simple_dialog.h" #include "ui/gtk/dlg_utils.h" @@ -1862,10 +1862,11 @@ static int rint (double x) { char *buf; - int i,dec,sig; + int i = 0 + int dec,sig; buf = _fcvt(x, 0, &dec, &sig); - i = atoi(buf); + ws_strtoi32(buf, NULL, &i); if(sig == 1) { i = i * -1; } |