summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-06-21 22:40:42 +0200
committerDave Davenport <qball@gmpclient.org>2016-06-21 22:40:42 +0200
commit77a0800ccf6e76b0c843e5f01eba6d447dd57463 (patch)
tree81db7faa4351421c0ad040d42fa9088b74456d7b /include
parent5fb6ee1383ff21cfc6c46cc0514c6c86dd297c03 (diff)
Copy memory instead of mixing malloc and g_malloc'ed memories (and freeing them all with g_free)
Diffstat (limited to 'include')
-rw-r--r--include/helper.h2
1 files changed, 1 insertions, 1 deletions
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 );
/*@}*/