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

bulk upload appeared to allow maxfiles+1 in a dir

parent e9ee189f
Branches
Tags
No related merge requests found
......@@ -522,7 +522,7 @@ bool sbbs_t::bulkupload(uint dirnum)
SYNC;
dir=opendir(path);
while((dirent=readdir(dir))!=NULL && !msgabort()) {
if(gettotalfiles(dirnum)>cfg.dir[dirnum]->maxfiles) {
if(getfiles(&cfg,dirnum)>=cfg.dir[dirnum]->maxfiles) {
bputs(text[DirFull]);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment