summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2019-07-03 19:36:40 +0200
committerHelge Deller <deller@gmx.de>2019-07-03 19:36:40 +0200
commit9668e2ddb23bed6058633ce4fd8824393ed53e3c (patch)
tree38ef03b55314cabbce977b1832b0426bd91f09b7
parent406a79ff02e9288f0a78a9d1d5293acd5009d990 (diff)
downloadpalo-9668e2ddb23bed6058633ce4fd8824393ed53e3c.tar.gz
iplboot: Fix sprintf check
Fix this warning: ipl.c: In function 'iplmain': ipl.c:644:33: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(kern_fullname, "%d%s", kern_part, kern_name); ^ ipl.c:644:5: note: 'sprintf' output between 2 and 139 bytes into a destination of size 128 Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--ipl/ipl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipl/ipl.c b/ipl/ipl.c
index 00660ac..03fe4ba 100644
--- a/ipl/ipl.c
+++ b/ipl/ipl.c
@@ -484,7 +484,7 @@ iplmain(int is_interactive, char *initialstackptr, int started_wide)
int wide;
int kern_part, rd_part;
char kern_name[128], rd_name[128];
- char kern_fullname[128];
+ char kern_fullname[128+10];
int ok = 1;
/* BSS clear */