Commit 973f2000 authored by rswindell's avatar rswindell
Browse files

Fix potential buffer overrun with a really long file xfer command-line

(excessively long fspec/%s value).
parent f821fa16
......@@ -220,7 +220,7 @@ int sbbs_t::protocol(prot_t* prot, enum XFER_TYPE type
else
p=NULL;
cmdline=cmdstr(protcmdline(prot,type),fpath,fspec,NULL);
sprintf(msg,"Transferring %s",cmdline);
SAFEPRINTF(msg,"Transferring %s",cmdline);
spymsg(msg);
sys_status|=SS_FILEXFER; /* disable spy during file xfer */
/* enable telnet binary transmission in both directions */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment