diff --git a/core/string.c b/core/string.c index 5b7c22e7..d159ea66 100644 --- a/core/string.c +++ b/core/string.c @@ -73,7 +73,7 @@ gchar *string_lowercase(const gchar *str) *j = '\0'; g_strchomp(res); - return res; + return g_realloc(res, strlen(res) + 1); } int string_compare(const gchar *lhs, const gchar *rhs)