Skip to content
Snippets Groups Projects
Commit ee7b19d1 authored by rswindell's avatar rswindell
Browse files

Bugfix in errorlog() - don't let node's critical error counter wrap (max out

at 255).
parent 5230af1e
No related branches found
No related tags found
No related merge requests found
......@@ -359,7 +359,9 @@ void sbbs_t::errorlog(char *text)
errorlog_inside=1;
if(cfg.node_num>0) {
getnodedat(cfg.node_num,&thisnode,1);
criterrs=++thisnode.errors;
if(thisnode.errors<UCHAR_MAX)
thisnode.errors++;
criterrs=thisnode.errors;
putnodedat(cfg.node_num,&thisnode);
}
now=time(NULL);
......
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