Skip to content
Snippets Groups Projects
Commit 4e3e63ef authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2568 passed
...@@ -301,7 +301,7 @@ void addlist(char *inpath, uint dirnum, const char* uploader, uint dskip, uint s ...@@ -301,7 +301,7 @@ void addlist(char *inpath, uint dirnum, const char* uploader, uint dskip, uint s
continue; continue;
} }
sprintf(filepath, "%s%s", scfg.dir[dirnum]->path,fname); SAFEPRINTF2(filepath, "%s%s", scfg.dir[dirnum]->path, fname);
if(strcspn(fname,"\\/|<>+[]:=\";,")!=strlen(fname)) { if(strcspn(fname,"\\/|<>+[]:=\";,")!=strlen(fname)) {
fprintf(stderr, "!Illegal filename: %s\n", fname); fprintf(stderr, "!Illegal filename: %s\n", fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment