aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
diff options
context:
space:
mode:
Diffstat (limited to 'toys/lsb')
-rw-r--r--toys/lsb/killall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/killall.c b/toys/lsb/killall.c
index f3d689b3..478f7617 100644
--- a/toys/lsb/killall.c
+++ b/toys/lsb/killall.c
@@ -40,7 +40,7 @@ static int kill_process(pid_t pid, char *name)
if (pid == TT.cur_pid) return 0;
if (toys.optflags & FLAG_i) {
- sprintf(toybuf, "Signal %4000s(%d) ?", name, (int)pid);
+ snprintf(toybuf, sizeof(toybuf), "Signal %s(%d) ?", name, (int)pid);
if (!yesno(toybuf, 0)) return 0;
}