From 77a0800ccf6e76b0c843e5f01eba6d447dd57463 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 21 Jun 2016 22:40:42 +0200 Subject: Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing them all with g_free) --- include/helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/helper.h b/include/helper.h index 81cd330c..e337bf39 100644 --- a/include/helper.h +++ b/include/helper.h @@ -158,7 +158,7 @@ unsigned int levenshtein ( const char *needle, const char *haystack ); /** * Convert string to valid utf-8, replacing invalid parts with replacement character. */ -char * rofi_force_utf8 ( gchar *data ); +char * rofi_force_utf8 ( gchar *data, ssize_t length ); char * rofi_latin_to_utf8_strdup ( const char *input, gssize length ); PangoAttrList *token_match_get_pango_attr ( GRegex **tokens, const char *input, PangoAttrList *retv ); /*@}*/ -- cgit v1.2.3