From d50a2cd99bca253f879c86c7f1e7fc1f72fe144a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 11 Mar 2010 22:53:34 +0000 Subject: [PATCH] Fix issue with uploading files >2GB. 4GB files still not supported due to 32-bit file size limitation. --- 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 acf5196132..c14630666c 100644 --- a/src/sbbs3/upload.cpp +++ b/src/sbbs3/upload.cpp @@ -139,7 +139,7 @@ bool sbbs_t::uploadfile(file_t *f) } } - if((length=(long)flength(path))<=0L) { + if((length=(long)flength(path))==0L) { bprintf(text[FileZeroLength],f->name); remove(path); sprintf(str,"%s attempted to upload %s to %s %s (Zero length)" -- GitLab