summaryrefslogtreecommitdiffstats
path: root/ppt
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-12-16 13:38:28 +0000
committerjsm <jsm@NetBSD.org>1999-12-16 13:38:28 +0000
commitf3b3c25a6879b367279b16979a7f9f634720ae7c (patch)
treee089f317124b204bd588acb652b3c31a14bf27d8 /ppt
parent769efcde81fa30521938e0fe7c0946a19d4f6e04 (diff)
downloadbsdgames-darwin-f3b3c25a6879b367279b16979a7f9f634720ae7c.tar.gz
bsdgames-darwin-f3b3c25a6879b367279b16979a7f9f634720ae7c.tar.zst
bsdgames-darwin-f3b3c25a6879b367279b16979a7f9f634720ae7c.zip
Print a space character on the tape between each command line argument.
Bug fix from OpenBSD.
Diffstat (limited to 'ppt')
-rw-r--r--ppt/ppt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ppt/ppt.c b/ppt/ppt.c
index befb1953..f94a9849 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.7 1999/12/16 13:38:28 jsm Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@ __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.7 1999/12/16 13:38:28 jsm Exp $");
#endif
#endif /* not lint */
@@ -66,9 +66,12 @@ main(argc, argv)
(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("___________");