]> code.citadel.org Git - citadel.git/blobdiff - webcit/useredit.c
* Integrated the first batch of new icons.
[citadel.git] / webcit / useredit.c
index b11f240c284e6bd729197fb9fec900030b189907..cc3c5bd198308bebfa165ec8a2ffee819c2a2dc4 100644 (file)
@@ -42,7 +42,7 @@ void select_user_to_edit(char *message, char *preselect)
        wprintf("<table width=100%% border=0 bgcolor=#444455><tr>"
                "<td>"
                "<span class=\"titlebar\">"
-               "<img src=\"/static/users-icon.gif\">"
+               "<img src=\"/static/usermanag_48x.gif\">"
                "Edit or delete users"
                "</span></td></tr></table>\n"
                "</div>\n<div id=\"content\">\n"
@@ -246,10 +246,10 @@ void display_edituser(char *supplied_username, int is_new) {
        int i;
 
        if (supplied_username != NULL) {
-               strcpy(username, supplied_username);
+               safestrncpy(username, supplied_username, sizeof username);
        }
        else {
-               strcpy(username, bstr("username") );
+               safestrncpy(username, bstr("username"), sizeof username);
        }
 
        serv_printf("AGUP %s", username);
@@ -379,7 +379,7 @@ void edituser(void) {
        is_new = atoi(bstr("is_new"));
 
        if (strcasecmp(bstr("action"), "OK")) {
-               strcpy(message, "Edit user cancelled.");
+               safestrncpy(message, "Edit user cancelled.", sizeof message);
        }
 
        else {
@@ -402,7 +402,7 @@ void edituser(void) {
                                "%s<br /><br />\n", &buf[4]);
                }
                else {
-                       strcpy(message, "");
+                       safestrncpy(message, "", sizeof message);
                }
        }
 
@@ -430,7 +430,7 @@ void delete_user(char *username) {
                        "%s<br /><br />\n", &buf[4]);
        }
        else {
-               strcpy(message, "");
+               safestrncpy(message, "", sizeof message);
        }
        select_user_to_edit(message, bstr("username"));
 }
@@ -443,7 +443,7 @@ void create_user(void) {
        char error_message[SIZ];
        char username[SIZ];
 
-       strcpy(username, bstr("username"));
+       safestrncpy(username, bstr("username"), sizeof username);
 
        serv_printf("CREU %s", username);
        serv_getln(buf, sizeof buf);