about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 12:17:23 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 12:17:23 +0200
commitf4159d8168fa7fc1e358066d288dbf94137a8628 (patch)
treee304fe87871382ed92f6c95e1b11a29bc953b1e7 /src
parente5ac12afa63457316793fa797d1a04202483ea05 (diff)
downloadprofani-tty-f4159d8168fa7fc1e358066d288dbf94137a8628.tar.gz
get_mentions() Use gchar instead of char
Diffstat (limited to 'src')
-rw-r--r--src/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.c b/src/common.c
index cf072026..27e5aeee 100644
--- a/src/common.c
+++ b/src/common.c
@@ -474,8 +474,8 @@ GSList*
 get_mentions(gboolean whole_word, gboolean case_sensitive, const char *const message, const char *const nick)
 {
     GSList *mentions = NULL;
-    char *message_search = case_sensitive ? strdup(message) : g_utf8_strdown(message, -1);
-    char *mynick_search = case_sensitive ? strdup(nick) : g_utf8_strdown(nick, -1);
+    gchar *message_search = case_sensitive ? g_strdup(message) : g_utf8_strdown(message, -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);