From 4e3e63efa690cc2855d7e0851159aed9784eef46 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Wed, 12 Jan 2022 19:32:31 -0800 Subject: [PATCH] =?UTF-8?q?Address=20GCC=20warning:=20=E2=80=98%s=E2=80=99?= =?UTF-8?q?=20directive=20writing=20up=20to=204096=20bytes...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: ā%sā directive writing up to 4096 bytes into a region of size between 4034 and 4097 --- src/sbbs3/addfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/addfiles.c b/src/sbbs3/addfiles.c index 04f34c672a..d984fb1c30 100644 --- a/src/sbbs3/addfiles.c +++ b/src/sbbs3/addfiles.c @@ -301,7 +301,7 @@ void addlist(char *inpath, uint dirnum, const char* uploader, uint dskip, uint s continue; } - 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); -- GitLab