talons

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

commit e34bf0a47a9e06a35cdc9b9e766c20ae483500d4
parent 398c2f1eb671e0219fbeda540b72e6d92a7ae6ea
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 25 Oct 2017 20:11:50 +0200

Use subst_char() in fancy_set_defaults().

Diffstat:
Msrc/plugins/fancy/fancy_viewer.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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. */