ref: e6e3cc474dc64d64ff12dce81e28278486704fe9
parent: 33c984e456fe1069beb4e2269dd38c92b291a24e
author: yenatch <yenatch@gmail.com>
date: Sat Jun 30 15:41:46 EDT 2018
Fix UTF-8 characters with an even number of bytes.
--- a/src/asm/charmap.c
+++ b/src/asm/charmap.c
@@ -32,12 +32,10 @@
dest[i] = src[i];
- i++;
if (state == 0) {
- dest[i] = '\0';
+ dest[++i] = '\0';
return i;
}
- dest[i] = src[i];
}
}