niceabort.c: '%s' directive writing up to 199 bytes into a region of size 177

GCC14 loud default warnings series [-Wformat-overflow=]
This commit is contained in:
Darryl L. Miles
2024-10-09 20:39:12 -04:00
committed by Tim Edwards
parent 29bd23d40b
commit 9f88450243
+1 -1
View File
@@ -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);