summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-12 06:14:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-12 06:16:14 (GMT)
commit6a90f3e67610b5a32cc701730773574ad36ae99c (patch)
tree8025dba67bac7dff319561de7a8a4fa20324d3e4 /plugins
parentc9ee0db8f8012eb523ef26de6b8a0b86181c2609 (diff)
Fixed sign extension when decoding UTF-8 data.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dexbnf/simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dexbnf/simple.c b/plugins/dexbnf/simple.c
index e66e83c..f06fc4d 100644
--- a/plugins/dexbnf/simple.c
+++ b/plugins/dexbnf/simple.c
@@ -132,7 +132,7 @@ static size_t dcd_simple_name_char(input_buffer *buffer)
text = get_input_buffer_text_access(buffer);
remaining = count_input_buffer_remaining(buffer);
- wc = decode_utf8_char(text, remaining, &result);
+ wc = decode_utf8_char((unsigned char *)text, remaining, &result);
if (IS_UTF8_ERROR(wc))
return 0;