summaryrefslogtreecommitdiffstats
path: root/bin/ps/fmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps/fmt.c')
-rw-r--r--bin/ps/fmt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 3b6a1ec..de1812f 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -32,17 +32,19 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)fmt.c 8.4 (Berkeley) 4/15/94";
+static char sccsid[] = "@(#)fmt.c 8.5 (Berkeley) 4/27/95";
#endif /* not lint */
#include <sys/param.h>
#include <sys/time.h>
#include <sys/resource.h>
+
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vis.h>
+
#include "ps.h"
static char *cmdpart __P((char *));
@@ -72,6 +74,8 @@ shquote(argv)
dst++;
*dst++ = ' ';
}
+ if (dst != buf)
+ --dst;
*dst = '\0';
return (buf);
}
OpenPOWER on IntegriCloud