[Commits] [SCM] claws branch, master, updated. 3.16.0-262-gee7929f

ticho at claws-mail.org ticho at claws-mail.org
Mon Aug 13 20:54:09 CEST 2018


The branch, master has been updated
       via  ee7929f73328c974deb58159e310da655597f955 (commit)
      from  d81313eb3abfed3ecfdf3b77d6d13103a0c45f12 (commit)

Summary of changes:
 src/plugins/rssyl/strutils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit ee7929f73328c974deb58159e310da655597f955
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Aug 13 20:52:45 2018 +0200

    Fix an embarrassing mistake in rssyl_strreplace().
    
    Closes bug #4068: Claws Mail hangs when getting news from a certain feed

diff --git a/src/plugins/rssyl/strutils.c b/src/plugins/rssyl/strutils.c
index e917b9a..7ef6098 100644
--- 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++) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list