summaryrefslogtreecommitdiffstats
path: root/src/utf8.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utf8.h b/src/utf8.h
index 1c2a2d9..9a336d3 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -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) {