[Commits] [SCM] claws branch, master, updated. 3.15.0-151-ge34bf0a

ticho at claws-mail.org ticho at claws-mail.org
Wed Oct 25 20:12:34 CEST 2017


The branch, master has been updated
       via  e34bf0a47a9e06a35cdc9b9e766c20ae483500d4 (commit)
      from  398c2f1eb671e0219fbeda540b72e6d92a7ae6ea (commit)

Summary of changes:
 src/plugins/fancy/fancy_viewer.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)


- Log -----------------------------------------------------------------
commit e34bf0a47a9e06a35cdc9b9e766c20ae483500d4
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Wed Oct 25 20:11:50 2017 +0200

    Use subst_char() in fancy_set_defaults().

diff --git a/src/plugins/fancy/fancy_viewer.c b/src/plugins/fancy/fancy_viewer.c
index 81f8f04..ca0da60 100644
--- a/src/plugins/fancy/fancy_viewer.c
+++ b/src/plugins/fancy/fancy_viewer.c
@@ -153,11 +153,7 @@ static void fancy_set_defaults(FancyViewer *viewer)
 	/* Replace backslashes with forward slashes, since we'll be
 	 * using this string in an URI. */
 	gchar *tmp2 = g_strdup(fancy_prefs.stylesheet);
-	gchar *c;
-	for (c = tmp2; *c != '\0'; c++) {
-		if (*c == '\\')
-			*c = '/';
-	}
+	subst_char(tmp2, '\\', '/');
 
 	/* Escape string for use in an URI, keeping dir separators
 	 * and colon for Windows drive name ("C:") intact. */

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list