diff options
Diffstat (limited to 'gio/gsettingsschema.c')
-rw-r--r-- | gio/gsettingsschema.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c index 38c9d78b9..e23dd8c89 100644 --- a/gio/gsettingsschema.c +++ b/gio/gsettingsschema.c @@ -20,6 +20,7 @@ #include "gsettingsschema-internal.h" #include "gsettings.h" +#include "gstrfuncsprivate.h" #include "gvdb/gvdb-reader.h" #include "strinfo.c" @@ -1057,9 +1058,9 @@ g_settings_schema_list_children (GSettingsSchema *schema) if (g_str_has_suffix (key, "/")) { - gint length = strlen (key); + gsize length = strlen (key); - strv[j] = g_memdup (key, length); + strv[j] = g_memdup2 (key, length); strv[j][length - 1] = '\0'; j++; } |