talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e0473d3257478d345f0dd2f686e08e4e14ea5c4f
parent ff726cd1aff7e80ff7071bfed51de0cdc3ff3620
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:
Msrc/plugins/rssyl/strutils.c | 2+-
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++) {