diff options
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -12,12 +12,11 @@ static inline unsigned int utf8_seqlen(long codepoint) return 6; } +/* Does NOT NUL-terminate the buffer */ static int fill_utf8(long codepoint, char *str) { int nbytes = utf8_seqlen(codepoint); - str[nbytes] = 0; - // This is easier done backwards int b = nbytes; while(b > 1) { |