mirror of
https://github.com/openbsd/src.git
synced 2026-04-24 22:26:03 +00:00
Increase argv buffer from _POSIX2_LINE_MAX to _POSIX_ARG_MAX.
This better handles matching commands with long arguments. Note that it is still possible for a command to have command line arguments larger than _POSIX_ARG_MAX, but this should be enough in most cases. From Mikolaj Kucharski
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: pkill.c,v 1.43 2021/09/01 15:54:40 deraadt Exp $ */
|
||||
/* $OpenBSD: pkill.c,v 1.44 2026/03/11 14:54:55 millert Exp $ */
|
||||
/* $NetBSD: pkill.c,v 1.5 2002/10/27 11:49:34 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
@@ -113,7 +113,7 @@ extern char *__progname;
|
||||
static char *
|
||||
getargv(struct kinfo_proc *kp)
|
||||
{
|
||||
static char buf[_POSIX2_LINE_MAX];
|
||||
static char buf[_POSIX_ARG_MAX];
|
||||
char **pargv;
|
||||
size_t j;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user