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"
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);
is_new = atoi(bstr("is_new"));
if (strcasecmp(bstr("action"), "OK")) {
- strcpy(message, "Edit user cancelled.");
+ safestrncpy(message, "Edit user cancelled.", sizeof message);
}
else {
"%s<br /><br />\n", &buf[4]);
}
else {
- strcpy(message, "");
+ safestrncpy(message, "", sizeof message);
}
}
"%s<br /><br />\n", &buf[4]);
}
else {
- strcpy(message, "");
+ safestrncpy(message, "", sizeof message);
}
select_user_to_edit(message, bstr("username"));
}
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);