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

Fix unsigned int compare to negative - caught by Coverity-scan

parent 22f130ca
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1527,7 +1527,7 @@ js_revert_text(JSContext *cx, uintN argc, jsval *arglist)
}
i--;
if(i<0 || i>=TOTAL_TEXT) {
if(i>=TOTAL_TEXT) {
for(i=0;i<TOTAL_TEXT;i++) {
if(sbbs->text[i]!=sbbs->text_sav[i] && sbbs->text[i]!=nulstr)
free(sbbs->text[i]);
......
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