diff --git a/syscall.c b/syscall.c index 87f7a829..5c8a79e8 100644 --- a/syscall.c +++ b/syscall.c @@ -302,6 +302,8 @@ qual_signal(s, opt, not) qualify_one(atoi(s), opt, not); return 1; } + if (strlen(s) >= sizeof buf) + return 0; strcpy(buf, s); s = buf; for (i = 0; s[i]; i++)