aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-02-18 13:44:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-02-18 13:45:49 +0100
commit33745b1fc8cc6d41f4e708d67800d296668af2ce (patch)
tree613c65a05046c60cdd0f786434c2c55b2e2e8d1b /shell
parent666a9a4c4d90c70e91272e72dcf3592410f1b5d0 (diff)
downloadbusybox-w32-33745b1fc8cc6d41f4e708d67800d296668af2ce.tar.gz
busybox-w32-33745b1fc8cc6d41f4e708d67800d296668af2ce.tar.bz2
busybox-w32-33745b1fc8cc6d41f4e708d67800d296668af2ce.zip
ash: placate -Werror=format-security
"In function 'sprint_status48': error: format not a string literal and no format arguments" function old new delta sprint_status48 160 158 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 1aead6df4..6a16833b1 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -4263,9 +4263,7 @@ sprint_status48(char *os, int status, int sigonly)
4263#endif 4263#endif
4264 } 4264 }
4265 st &= 0x7f; 4265 st &= 0x7f;
4266//TODO: use bbox's get_signame? strsignal adds ~600 bytes to text+rodata 4266 s = stpncpy(s, strsignal(st), 32);
4267 //s = stpncpy(s, strsignal(st), 32); //not all libc have stpncpy()
4268 s += fmtstr(s, 32, strsignal(st));
4269 if (WCOREDUMP(status)) { 4267 if (WCOREDUMP(status)) {
4270 s = stpcpy(s, " (core dumped)"); 4268 s = stpcpy(s, " (core dumped)");
4271 } 4269 }