From eafb6fe82f9430e48afdfe166d96079a34b98483 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 Dec 2000 00:04:51 +0000 Subject: [PATCH] Theme saving to home dir didn't work correctly if globaldir already had the same theme. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@994 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index d283376c..06910f39 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -881,7 +881,7 @@ static void theme_save(THEME_REC *theme) g_basename(theme->path)); str = strrchr(path, '/'); if (strncmp(theme->path, path, (int) (path-str)) == 0 || - config_write(config, str, 0660) == -1) + config_write(config, path, 0660) == -1) ok = FALSE; } printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE,