1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

get_mentions() Use gchar instead of char

This commit is contained in:
Michael Vetter 2020-07-02 12:17:23 +02:00
parent e5ac12afa6
commit f4159d8168

View File

@ -474,8 +474,8 @@ GSList*
get_mentions(gboolean whole_word, gboolean case_sensitive, const char *const message, const char *const nick) get_mentions(gboolean whole_word, gboolean case_sensitive, const char *const message, const char *const nick)
{ {
GSList *mentions = NULL; GSList *mentions = NULL;
char *message_search = case_sensitive ? strdup(message) : g_utf8_strdown(message, -1); gchar *message_search = case_sensitive ? g_strdup(message) : g_utf8_strdown(message, -1);
char *mynick_search = case_sensitive ? strdup(nick) : g_utf8_strdown(nick, -1); gchar *mynick_search = case_sensitive ? g_strdup(nick) : g_utf8_strdown(nick, -1);
mentions = prof_occurrences(mynick_search, message_search, 0, whole_word, &mentions); mentions = prof_occurrences(mynick_search, message_search, 0, whole_word, &mentions);