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

Fix issue with uploading files >2GB. 4GB files still not supported due to

32-bit file size limitation.
parent 9061633e
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ bool sbbs_t::uploadfile(file_t *f) ...@@ -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); bprintf(text[FileZeroLength],f->name);
remove(path); remove(path);
sprintf(str,"%s attempted to upload %s to %s %s (Zero length)" sprintf(str,"%s attempted to upload %s to %s %s (Zero length)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment