diff options
author | Helge Deller <deller@gmx.de> | 2019-07-03 19:36:40 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2019-07-03 19:36:40 +0200 |
commit | 9668e2ddb23bed6058633ce4fd8824393ed53e3c (patch) | |
tree | 38ef03b55314cabbce977b1832b0426bd91f09b7 | |
parent | 406a79ff02e9288f0a78a9d1d5293acd5009d990 (diff) | |
download | palo-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |