aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/librune')
-rw-r--r--vendor/librune/lib/utf8/u8chk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/librune/lib/utf8/u8chk.c b/vendor/librune/lib/utf8/u8chk.c
index 9a2cf03..422bbd8 100644
--- a/vendor/librune/lib/utf8/u8chk.c
+++ b/vendor/librune/lib/utf8/u8chk.c
@@ -12,7 +12,7 @@ u8chk(const char8_t *s, size_t n)
if (ch == RUNE_ERROR)
return s;
- n += m;
+ n -= m;
}
return nullptr;