Commit 4e3e63ef authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Address GCC warning: ‘%s’ directive writing up to 4096 bytes...

warning: ‘%s’ directive writing up to 4096 bytes into a region of size between 4034 and 4097
parent 618d552a
Pipeline #2568 passed with stage
in 12 minutes and 39 seconds
......@@ -301,7 +301,7 @@ void addlist(char *inpath, uint dirnum, const char* uploader, uint dskip, uint s
sprintf(filepath, "%s%s", scfg.dir[dirnum]->path,fname);
SAFEPRINTF2(filepath, "%s%s", scfg.dir[dirnum]->path, fname);
if(strcspn(fname,"\\/|<>+[]:=\";,")!=strlen(fname)) {
fprintf(stderr, "!Illegal filename: %s\n", fname);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment