summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-01-17 07:10:42 +0000
committermillert <millert@openbsd.org>1997-01-17 07:10:42 +0000
commit180acc8f08201633decf63424d1317ede80af916 (patch)
treeb64a266b7ea344cb2be4663edaffe52d9eb8de8c /usr.bin/paste
parentlite2 daily + our changes. We can remove old tmp files now that fts(3) (diff)
downloadwireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.tar.xz
wireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.zip
r?index -> strr?chr
Diffstat (limited to 'usr.bin/paste')
-rw-r--r--usr.bin/paste/paste.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/paste/paste.c b/usr.bin/paste/paste.c
index 514227f4d4a..a63f6159c35 100644
--- a/usr.bin/paste/paste.c
+++ b/usr.bin/paste/paste.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $ */
+/* $OpenBSD: paste.c,v 1.4 1997/01/17 07:13:02 millert Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -44,7 +44,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)paste.c 5.7 (Berkeley) 10/30/90";*/
-static char rcsid[] = "$OpenBSD: paste.c,v 1.3 1997/01/15 23:43:02 millert Exp $";
+static char rcsid[] = "$OpenBSD: paste.c,v 1.4 1997/01/17 07:13:02 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -149,7 +149,7 @@ parallel(argv)
putchar(ch);
continue;
}
- if (!(p = index(buf, '\n'))) {
+ if (!(p = strchr(buf, '\n'))) {
(void)fprintf(stderr,
"paste: %s: input line too long.\n",
lp->name);
@@ -192,7 +192,7 @@ sequential(argv)
}
if (fgets(buf, sizeof(buf), fp)) {
for (cnt = 0, dp = delim;;) {
- if (!(p = index(buf, '\n'))) {
+ if (!(p = strchr(buf, '\n'))) {
(void)fprintf(stderr,
"paste: %s: input line too long.\n",
*argv);