org[0] = 0;
extrafields[0] = 0;
- strcpy(whatuser, "");
+ safestrncpy(whatuser, "", sizeof whatuser);
if (msgnum >= 0) {
sprintf(buf, "MSG0 %ld|1", msgnum);
}
while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
if (!strncasecmp(buf, "from=", 5)) {
- strcpy(whatuser, &buf[5]);
+ safestrncpy(whatuser, &buf[5], sizeof whatuser);
}
else if (!strncasecmp(buf, "node=", 5)) {
strcat(whatuser, " @ ");
}
else if (!strcasecmp(key, "title")) {
- strcpy(title, value);
+ safestrncpy(title, value, sizeof title);
}
else if (!strcasecmp(key, "org")) {
- strcpy(org, value);
+ safestrncpy(org, value, sizeof org);
}
else if (!strcasecmp(key, "adr")) {
else if (!strcasecmp(key, "email;internet")) {
if (primary_inetemail[0] == 0) {
- strcpy(primary_inetemail, value);
+ safestrncpy(primary_inetemail, value, sizeof primary_inetemail);
}
else {
if (other_inetemail[0] != 0) {
wprintf("<div id=\"banner\">\n"
"<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
"<SPAN CLASS=\"titlebar\">"
- "<img src=\"/static/vcard.gif\">"
+ "<img src=\"/static/savecontact_48x.gif\">"
"Edit contact information"
"</SPAN>"
"</TD></TR></TABLE>\n"