summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/str.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tr/str.c b/usr.bin/tr/str.c
index 9675e0f..3d532cf 100644
--- a/usr.bin/tr/str.c
+++ b/usr.bin/tr/str.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)str.c 8.1 (Berkeley) 6/6/93";
+static char sccsid[] = "@(#)str.c 8.2 (Berkeley) 4/28/95";
#endif /* not lint */
#include <sys/cdefs.h>
@@ -241,8 +241,8 @@ genrange(s)
char *savestart;
savestart = s->str;
- stopval = *++s->str == '\\' ? backslash(s) : *s->str;
- if (stopval < s->lastch) {
+ stopval = *++s->str == '\\' ? backslash(s) : *s->str++;
+ if (stopval < (u_char)s->lastch) {
s->str = savestart;
return (0);
}
OpenPOWER on IntegriCloud