From: Art Cancro Date: Tue, 28 Jul 2009 03:20:08 +0000 (+0000) Subject: * sieve.c: changed a bstr() to BSTR() which fixes the problem of custom Sieve scripts... X-Git-Tag: v7.86~952 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=c87b4d90055622a2a6091c8116974301157a99d4 * sieve.c: changed a bstr() to BSTR() which fixes the problem of custom Sieve scripts disappearing when the user saves them. --- 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");