summaryrefslogtreecommitdiff
path: root/ui/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/sctp_graph_dlg.c')
-rw-r--r--ui/gtk/sctp_graph_dlg.c7
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;
}