From: John Darrington Date: Sat, 5 Sep 2020 03:08:12 +0000 (+0200) Subject: Use g_ascii_strtoll instead of strtol. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2252ba28252bb743c835ccee144a099e410ba4c;p=pspp Use g_ascii_strtoll instead of strtol. The former is locale sensitive. --- diff --git a/src/ui/gui/psppire-scanf.c b/src/ui/gui/psppire-scanf.c index 986f48c79f..88128a3090 100644 --- a/src/ui/gui/psppire-scanf.c +++ b/src/ui/gui/psppire-scanf.c @@ -107,11 +107,11 @@ guts (PsppireScanf *scanf) int width = 0; if (dir.precision_start && dir.precision_end) - precision = strtol (dir.precision_start + 1, + precision = g_ascii_strtoll (dir.precision_start + 1, (char **) &dir.precision_end, 10); if (dir.width_start && dir.width_end) - width = strtol (dir.width_start, (char **) &dir.width_end, 10); + width = g_ascii_strtoll (dir.width_start, (char **) &dir.width_end, 10); if (dir.dir_start > s) ship_label (scanf, &s, &scanf->d, i);