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

Don't check the directory maxfiles setting in addfiledat(), this is the wrong

place (e.g. the file was probably already uploaded to disk).
parent c85c0455
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -187,7 +187,7 @@ BOOL DLLCALL addfiledat(scfg_t* cfg, file_t* f)
read(file,&c,1);
if(c==ETX) break;
}
if(l/F_LEN>=MAX_FILES || l/F_LEN>=cfg->dir[f->dir]->maxfiles) {
if(l/F_LEN>=MAX_FILES) {
close(file);
return(FALSE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment