diff options
-rw-r--r-- | uxd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -556,8 +556,8 @@ int is_overlong(int cont_count, unsigned char *b) { /* U+10FFFF is the last valid codepoint. It encodes to f4 8f bf bf. 'count' is the count of continuation bytes only (so, 3 for a 4-byte sqeuence). */ -int is_out_of_range(int count, unsigned char *b) { - if(count < 3) return 0; +int is_out_of_range(int cont_count, unsigned char *b) { + if(cont_count < 3) return 0; if(b[0] < 0xf4) return 0; if(b[1] < 0x90) return 0; return 1; |