summaryrefslogtreecommitdiff
path: root/src/utf8.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-10 19:39:03 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-10 19:39:03 +0200
commitc47e3a34adac00a262f72c6d17a1c87deefa33c4 (patch)
tree050271490a6d3c22e643fac0392193cd9ff19210 /src/utf8.h
parentc04e1e7aef06ce0836984b17e48a1d09bb83ce04 (diff)
Fix infinite loop when case folding invalid UTF8 chars
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utf8.h b/src/utf8.h
index 9506b75..c971250 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -6,8 +6,8 @@
void utf8proc_case_fold(strbuf *dest, const uint8_t *str, int len);
void utf8proc_encode_char(int32_t uc, strbuf *buf);
-ssize_t utf8proc_iterate(const uint8_t *str, ssize_t str_len, int32_t *dst);
-ssize_t utf8proc_charlen(const uint8_t *str, ssize_t str_len);
+int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst);
+int utf8proc_charlen(const uint8_t *str, int str_len);
void utf8proc_detab(strbuf *dest, const uint8_t *line, size_t size);
#endif