Commit 62e52288 authored by deuce's avatar deuce

Remove undefined behaviour.

parent 4a3b2260
......@@ -106,7 +106,8 @@ void sbbs_t::multinodechat(int channel)
if(node.aux && (node.aux&0xff)!=channel)
continue;
printnodedat(i,&node);
preusr[usrs]=usr[usrs++]=(char)i;
preusr[usrs]=(char)i;
usr[usrs++]=(char)i;
}
preusrs=usrs;
if(gurubuf)
......@@ -218,7 +219,8 @@ void sbbs_t::multinodechat(int channel)
if(strcmp(str,unpackchatpass(tmp,&node)))
break;
bputs(text[CorrectPassword]); }
preusr[usrs]=usr[usrs++]=(char)i;
preusr[usrs]=(char)i;
usr[usrs++]=(char)i;
}
if(i<=cfg.sys_nodes) { /* failed password */
bputs(text[WrongPassword]);
......@@ -291,7 +293,8 @@ void sbbs_t::multinodechat(int channel)
|| node.status!=NODE_INUSE)
continue;
printnodedat(i,&node);
preusr[usrs]=usr[usrs++]=(char)i;
preusr[usrs]=(char)i;
usr[usrs++]=(char)i;
}
preusrs=usrs;
if(getnodedat(cfg.node_num,&thisnode,true)==0) {
......
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