Skip to content
Snippets Groups Projects
Commit 6faadeeb authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix CID 508288 (STRING_NULL)

I'm not clear why Coverity suddenly thinks that getstr() doesn't
nul-terminate strings, but whatever: NUL-terminate the buf before passing it
to getstr(). <shrug>
parent 5a6714e3
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6553 passed
......@@ -381,6 +381,7 @@ bool sbbs_t::telnet_gate(char* destaddr, uint mode, unsigned timeout, str_list_t
l=K_CHAT;
if(!(mode&TG_ECHO))
l|=K_NOECHO;
*buf = '\0';
rd=getstr((char*)buf,sizeof(buf)-1,l);
if(!rd)
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment