diff options
Diffstat (limited to 'src/helper.c')
| -rw-r--r-- | src/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper.c b/src/helper.c index 2749daa..f258d23 100644 --- a/src/helper.c +++ b/src/helper.c @@ -4,7 +4,7 @@ /* this reads one utf81 character from the start of bytes it puts the character's number in *codepoint and returns how many bytes it used (its always 1 or more) invalid input it stores U+FFFD (�) and returns 1, so the caller always moves forward. */ -static int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ +int utf8_decode(const unsigned char *bytes, unsigned long *codepoint){ unsigned long value = bytes[0]; unsigned long minallowed = 0; //rejects overlong encodings int sequence_length; |
