From c87b4d90055622a2a6091c8116974301157a99d4 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 28 Jul 2009 03:20:08 +0000 Subject: [PATCH] * sieve.c: changed a bstr() to BSTR() which fixes the problem of custom Sieve scripts disappearing when the user saves them. --- webcit/sieve.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/sieve.c b/webcit/sieve.c index 891b8ef70..9ae76a97b 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -621,7 +621,7 @@ void save_sieve(void) { if (buf[0] == '4') { snprintf(this_name, sizeof this_name, "text_%s", script_names[i]); striplt((char*)BSTR(this_name)); /* TODO: get rid of typecast*/ - serv_printf("%s", bstr(this_name)); + serv_printf("%s", BSTR(this_name)); serv_puts("000"); } } @@ -651,7 +651,9 @@ void display_add_remove_scripts(char *message) wprintf("
\n"); - if (message != NULL) wprintf(message); + if (message != NULL) { + wprintf("%s", message); + } wprintf("
\n"); -- 2.30.2