-/* $NetBSD: ppt.c,v 1.6 1999/09/12 09:02:22 jsm Exp $ */
+/* $NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)ppt.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: ppt.c,v 1.6 1999/09/12 09:02:22 jsm Exp $");
+__RCSID("$NetBSD: ppt.c,v 1.9 2000/07/03 03:57:43 matt Exp $");
#endif
#endif /* not lint */
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
int main __P((int, char *[]));
char *p;
/* Revoke setgid privileges */
- setregid(getgid(), getgid());
+ setgid(getgid());
(void) puts("___________");
if (argc > 1)
- while ((p = *++argv) != NULL)
+ while ((p = *++argv) != NULL) {
for (; *p; ++p)
putppt((int)*p);
+ if ((*(argv + 1)))
+ putppt((int)' ');
+ }
else while ((c = getchar()) != EOF)
putppt(c);
(void) puts("___________");