projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix parsing of ranges.
[unix-history]
/
usr.bin
/
tr
/
str.c
diff --git
a/usr.bin/tr/str.c
b/usr.bin/tr/str.c
index
1ff2ac7
..
daa7195
100644
(file)
--- a/
usr.bin/tr/str.c
+++ b/
usr.bin/tr/str.c
@@
-250,7
+250,7
@@
genrange(s)
char *savestart;
savestart = s->str;
char *savestart;
savestart = s->str;
- stopval = *++s->str == '\\' ? backslash(s) : *s->str;
+ stopval = *++s->str == '\\' ? backslash(s) : *s->str
++
;
if (stopval < s->lastch) {
s->str = savestart;
return (0);
if (stopval < s->lastch) {
s->str = savestart;
return (0);