summaryrefslogtreecommitdiff
path: root/gtk/gtkcelllayout.c
diff options
context:
space:
mode:
author=Christian Persch <chpe@gnome.org>2010-10-25 12:22:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-10-25 12:22:20 -0400
commitd3f1745493867d37f7c7cbe48002ce076c9db5f7 (patch)
treebc1ae7b1f0b31fb0b47706d906af55b2637a493e /gtk/gtkcelllayout.c
parent377e7179b8a5fb5036b0015424a08707457ab75c (diff)
downloadgtk+-d3f1745493867d37f7c7cbe48002ce076c9db5f7.tar.gz
Use g_ascii_strto[u]ll instead of strto[u]l
We don't want GtkBuilder input to be locale-dependent. Bug #632503
Diffstat (limited to 'gtk/gtkcelllayout.c')
-rw-r--r--gtk/gtkcelllayout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcelllayout.c b/gtk/gtkcelllayout.c
index 86e8e39644..8388b5f7d5 100644
--- a/gtk/gtkcelllayout.c
+++ b/gtk/gtkcelllayout.c
@@ -335,9 +335,9 @@ attributes_text_element (GMarkupParseContext *context,
if (!parser_data->attr_name)
return;
- errno = 0;
string = g_strndup (text, text_len);
- l = strtol (string, &endptr, 0);
+ errno = 0;
+ l = g_ascii_strtoll (string, &endptr, 0);
if (errno || endptr == string)
{
g_set_error (error,