summaryrefslogtreecommitdiff
path: root/src/utf8.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 18:23:13 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2014-11-24 20:14:00 +0100
commit82b360db50dfcb889e4488dfb3e5bcfc52d91857 (patch)
tree849a1d51ec18ffb67e474206dbacb4227caf4fe4 /src/utf8.c
parent635bb48bad16a846a7d5a513800ff08d393b0651 (diff)
Off-by-one error in utf8proc_detab
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8.c b/src/utf8.c
index e144c72..b343175 100644
--- a/src/utf8.c
+++ b/src/utf8.c
@@ -60,7 +60,7 @@ void utf8proc_detab(strbuf *ob, const uint8_t *line, size_t size)
while (i < size) {
size_t org = i;
- while (i < size && line[i] != '\t' && line[i] <= 0x80) {
+ while (i < size && line[i] != '\t' && line[i] < 0x80) {
i++; tab++;
}