mirror of git://git.suckless.org/sbase
tr: Fix infinite loop
When `makeset` got a string containing square brackets followed by at least one extra character, e.g. "[abc]d", it entered an infinite loop because it was assumed `j` could not exceed `len` without having been equal to `len`. It can, however, when `m == len` and subsequently `j = m + 1`.
This commit is contained in:
parent
e1c56a6321
commit
6eec2eb3b4
Loading…
Reference in New Issue