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

Address a couple of Coverity-reported defects

CID 452331
CID 452330
parent b3c63244
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -933,7 +933,7 @@ uint sbbs_t::msgeditor(char *buf, const char *top, char *title, uint maxlines, u
rioctl(IOCS|ABORT);
if((str = strListDivide(NULL, buf, "\n")) == NULL) {
errormsg(WHERE,ERR_ALLOC,"msgeditor",sizeof(char *)*(maxlines+1));
errormsg(WHERE,ERR_ALLOC,"msgeditor",strlen(buf));
return(0);
}
lines = strListCount(str);
......@@ -963,7 +963,7 @@ uint sbbs_t::msgeditor(char *buf, const char *top, char *title, uint maxlines, u
sync();
rioctl(IOSM|ABORT);
while(online) {
if(line < 0)
if((int)line < 0)
line = 0;
if((int)line>(int)maxlines-10) {
if(line >= maxlines)
......
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