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

Fix potential divide by zero

CID 330961
parent e7776dcc
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -703,7 +703,7 @@ bool sbbs_t::addtobatdl(file_t* f)
bprintf(text[FileAddedToBatDlQueue]
,f->name, strListCount(filenames) + 1, cfg.max_batdn, ultoac((ulong)totalcost,tmp)
,ultoac((ulong)totalsize,tmp2)
,sectostr((ulong)totalsize/(ulong)cur_cps,str));
,sectostr((ulong)totalsize/max((ulong)cur_cps, 1),str));
result = true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment