Skip to content
Snippets Groups Projects
Commit 6fd076a0 authored by deuce's avatar deuce
Browse files

Use SAFECOPY from key to BBS name to prevent overflowing the field.

parent 4446c605
Branches
Tags
No related merge requests found
......@@ -195,7 +195,7 @@ void read_item(FILE *listfile, struct bbslist *entry, char *bbsname, int id, int
get_syncterm_filename(home, sizeof(home), SYNCTERM_DEFAULT_TRANSFER_PATH, FALSE);
if(bbsname != NULL)
strcpy(entry->name,bbsname);
SAFECOPY(entry->name,bbsname);
iniReadString(listfile,bbsname,"Address","",entry->addr);
entry->conn_type=iniReadEnum(listfile,bbsname,"ConnectionType",conn_types,CONN_TYPE_RLOGIN);
entry->port=iniReadShortInt(listfile,bbsname,"Port",conn_ports[entry->conn_type]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment