summaryrefslogtreecommitdiff
path: root/usr.bin/sed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-30 06:21:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-30 06:21:17 +0000
commit933ab1db5f0184f90012172807b4858652cc7aa3 (patch)
tree186b3978fa98e1939a71626f7ec3206edb9def94 /usr.bin/sed
parent99564d1da88c4a9ff0951c565bbd36b62f50efa6 (diff)
make y command 8 bit clean; Elmar.Bartel@informatik.tu-muenchen.de
Diffstat (limited to 'usr.bin/sed')
-rw-r--r--usr.bin/sed/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index 46760aba1dc..7741fe288cb 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process.c,v 1.3 1997/09/11 11:21:07 deraadt Exp $ */
+/* $OpenBSD: process.c,v 1.4 1998/04/30 06:21:16 deraadt Exp $ */
/*-
* Copyright (c) 1992 Diomidis Spinellis.
@@ -39,7 +39,7 @@
#ifndef lint
/* from: static char sccsid[] = "@(#)process.c 8.1 (Berkeley) 6/6/93"; */
-static char *rcsid = "$OpenBSD: process.c,v 1.3 1997/09/11 11:21:07 deraadt Exp $";
+static char *rcsid = "$OpenBSD: process.c,v 1.4 1998/04/30 06:21:16 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -240,7 +240,7 @@ redirect:
if (pd)
break;
for (p = ps, len = psl; --len; ++p)
- *p = cp->u.y[*p];
+ *p = cp->u.y[(unsigned char)*p];
break;
case ':':
case '}':