From 9f88450243e9a76ed12a58345b60a9ebbb48a1bd Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 2 Oct 2024 06:59:00 +0100 Subject: [PATCH] niceabort.c: '%s' directive writing up to 199 bytes into a region of size 177 GCC14 loud default warnings series [-Wformat-overflow=] --- utils/niceabort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/niceabort.c b/utils/niceabort.c index 8c23fb5b..8533f800 100644 --- a/utils/niceabort.c +++ b/utils/niceabort.c @@ -67,7 +67,7 @@ DumpCore() int cpid, gcpid, wpid; FILE *commentFile, *crashFile; time_t now; - char pidString[20], line[150], command[200], tempName[200], *crashDir; + char pidString[20], line[150], command[512], tempName[200], *crashDir; TxPrintf("Please wait while magic generates a core image of itself....\n"); sprintf(pidString, "%d", parentPid);