commit e8c736db2ccb37ab9afada7fa8f5ca7a0f2ea34f
parent 9d25cc995df606659c73a48149c89808ed319ada
Author: Ricardo Mones <ricardo@mones.org>
Date: Fri, 3 Nov 2017 17:46:19 +0100
Use appropriate array for searching
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/rssyl/strutils.c b/src/plugins/rssyl/strutils.c
@@ -239,7 +239,7 @@ gchar *rssyl_replace_html_stuff(gchar *text,
/* TODO: rewrite this part to work similarly to rssyl_replace_chrefs() */
if( tags ) {
for( i = 0; tag_list[i].key != NULL; i++ ) {
- if( g_strstr_len(text, strlen(text), symbol_list[i].key) ) {
+ if( g_strstr_len(text, strlen(text), tag_list[i].key) ) {
tmp = rssyl_strreplace(wtext, tag_list[i].key, tag_list[i].val);
g_free(wtext);
wtext = g_strdup(tmp);