X-Git-Url: https://git.cameronkatri.com/bsdgames-darwin.git/blobdiff_plain/2f593094f0c4f828fd81a3b052ee426135135694..a988826d5cdd58c51ed6c38a0b02d674b6631e76:/ppt/ppt.c diff --git a/ppt/ppt.c b/ppt/ppt.c index befb1953..a69a7b27 100644 --- a/ppt/ppt.c +++ b/ppt/ppt.c @@ -1,4 +1,4 @@ -/* $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 @@ -43,11 +43,12 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\ #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 +#include #include int main __P((int, char *[])); @@ -62,13 +63,16 @@ main(argc, argv) 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("___________");