* sieve.c: changed a bstr() to BSTR() which fixes the problem of custom Sieve scripts...
authorArt Cancro <ajc@citadel.org>
Tue, 28 Jul 2009 03:20:08 +0000 (03:20 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 28 Jul 2009 03:20:08 +0000 (03:20 +0000)
webcit/sieve.c

index 891b8ef70133ac0bcccdc81c533c414836c53aa1..9ae76a97b978947758a73c6c28319ed9cefa1ad4 100644 (file)
@@ -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("<div id=\"content\" class=\"service\">\n");
 
-       if (message != NULL) wprintf(message);
+       if (message != NULL) {
+               wprintf("%s", message);
+       }
 
        wprintf("<table border=0 cellspacing=10><tr valign=top><td>\n");