serv_getln(buf, sizeof buf);
if (buf[0] != '2') {
- strcpy(WC->ImportantMessage, &buf[4]);
+ safestrncpy(WC->ImportantMessage, &buf[4], sizeof WC->ImportantMessage);
display_main_menu();
return;
}
serv_puts(enter_cmd);
serv_getln(buf, sizeof buf);
if (buf[0] != '4') {
- strcpy(WC->ImportantMessage, &buf[4]);
+ safestrncpy(WC->ImportantMessage, &buf[4], sizeof WC->ImportantMessage);
display_main_menu();
return;
}