commit ee7929f73328c974deb58159e310da655597f955
parent d81313eb3abfed3ecfdf3b77d6d13103a0c45f12
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Mon, 13 Aug 2018 20:52:45 +0200
Fix an embarrassing mistake in rssyl_strreplace().
Closes bug #4068: Claws Mail hangs when getting news from a certain feed
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/rssyl/strutils.c b/src/plugins/rssyl/strutils.c
@@ -80,7 +80,7 @@ gchar *rssyl_strreplace(gchar *source, gchar *pattern,
/* Go until either end of string is reached, or until the
* remaining text is shorter than the pattern. */
- while( *c != '\0' && strlen(c) <= len_pattern) {
+ while( *c != '\0' && strlen(c) >= len_pattern) {
if( !memcmp(c, pattern, len_pattern) ) {
int i;
for (i = 0; i < len_replacement; i++) {