diff options
-rw-r--r-- | bin/ps/fmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c index c0c11f0..9263886 100644 --- a/bin/ps/fmt.c +++ b/bin/ps/fmt.c @@ -125,7 +125,7 @@ fmt_argv(char **argv, char *cmd, size_t maxlen) } cp = malloc(len); if (cp == NULL) - return (NULL); + errx(1, "malloc failed"); if (ap == NULL) sprintf(cp, " (%.*s)", (int)maxlen, cmd); else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0) |