diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c index 3b6a1ec1c8b4..eee5813f977b 100644 --- a/bin/ps/fmt.c +++ b/bin/ps/fmt.c @@ -72,7 +72,7 @@ shquote(argv) dst++; *dst++ = ' '; } - *dst = '\0'; + *--dst = '\0'; return (buf); }