* added gcc printf format checking to wprintf
[citadel.git] / webcit / siteconfig.c
index d15d8506ced306f7bc7214ae325a658f3ccaead2..7a7288dee90c92b874d44dc8f8b3efbfff41a3b2 100644 (file)
@@ -113,7 +113,7 @@ void display_siteconfig(void)
                );
                
        wprintf("<form method=\"post\" action=\"siteconfig\">\n");
-       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
+       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
        
        sprintf(&general[strlen(general)], "<tr><td><a href=\"display_edithello\"> %s </a></td>",           _("Change Login Logo"));
        sprintf(&general[strlen(general)],     "<td><a href=\"display_editgoodbuye\"> %s </a></td></tr>\n", _("Change Logout Logo"));
@@ -505,7 +505,7 @@ void display_siteconfig(void)
                        HashList *List;
                        HashPos  *it;
 
-                       List = NewHash();
+                       List = NewHash(1, NULL);
                        len = sizeof("UTC") + 1;
                        ZName = malloc(len + 1);
                        memcpy(ZName, "UTC", len + 1);
@@ -518,7 +518,7 @@ void display_siteconfig(void)
                                memcpy(ZName, this_zone, len + 1);
                                Put(List, ZName, len, ZName, NULL);
                        }
-                       SortByHashKey(List);
+                       SortByHashKey(List, 0);
                        it = GetNewHashPos();
                        while (GetNextHashPos(List, it, &len, &ZName, &ZNamee)) {
                                sprintf(&general[strlen(general)], "<option %s value=\"%s\">%s</option>\n",
@@ -577,7 +577,7 @@ void display_siteconfig(void)
                        break;
                case 56:
                        sprintf(&funambol[strlen(funambol)], "<TR><TD>");
-                       sprintf(&funambol[strlen(funambol)], _("Funambol auth details (user:pass in Base64)"));
+                       sprintf(&funambol[strlen(funambol)], _("Funambol auth details (user:pass)"));
                        sprintf(&funambol[strlen(funambol)], "</TD><TD>");
                        sprintf(&funambol[strlen(funambol)], "<input type=\"text\" NAME=\"c_funambol_auth\" MAXLENGTH=\"255\" VALUE=\"%s\">", buf);
                        sprintf(&funambol[strlen(funambol)], "</TD></TR>\n");