From 3c9e03fc46bba83a87a61bded342716540f9db5b Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Thu, 19 Apr 2001 22:54:43 +0000
Subject: [PATCH] bulk upload appeared to allow maxfiles+1 in a dir

---
 src/sbbs3/upload.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/upload.cpp b/src/sbbs3/upload.cpp
index 9e37dd5db3..92225dee58 100644
--- a/src/sbbs3/upload.cpp
+++ b/src/sbbs3/upload.cpp
@@ -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; 
 		}
-- 
GitLab