summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2007-08-07 21:04:23 +0000
committerJohan Dahlin <johan@src.gnome.org>2007-08-07 21:04:23 +0000
commitf09b3248afe3920b4fb6c734f1263f483474d181 (patch)
tree13f7face69b5dd05fa5ab61abfebeb160a78b3cc /gtk/gtkbuilderparser.c
parentce1d7e3a4a73c3a17c09c851cfdea9cc599c1b40 (diff)
downloadgdk-pixbuf-f09b3248afe3920b4fb6c734f1263f483474d181.tar.gz
Use g_strdup on the translated string instead of g_strndup() + the length
2007-08-07 Johan Dahlin <jdahlin@async.com.br> * gtk/gtkbuilderparser.c (text): Use g_strdup on the translated string instead of g_strndup() + the length of the untranslated string. (#461945, Claude Paroz) svn path=/trunk/; revision=18588
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 8937b7847..9ca1889b4 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -915,7 +915,7 @@ text (GMarkupParseContext *context,
else
text = dgettext (data->domain, text);
}
- prop_info->data = g_strndup (text, text_len);
+ prop_info->data = g_strdup (text);
}
}