system/corennnnn
修訂 | 16d46d081d1161f0c3807f680c1bcbdbaefaff77 (tree) |
---|---|
時間 | 2016-07-27 03:54:20 |
作者 | Mark Salyzyn <salyzyn@goog...> |
Commiter | Jaap Jan Meijer |
liblog: logprint: printable nul
Change-Id: I57d1f86ce040ad196c558bb72ac0464af793c214
@@ -774,7 +774,7 @@ WEAK ssize_t utf8_character_length(const char *src, size_t len) | ||
774 | 774 | uint32_t utf32; |
775 | 775 | |
776 | 776 | if ((first_char & 0x80) == 0) { /* ASCII */ |
777 | - return 1; | |
777 | + return first_char ? 1 : -1; | |
778 | 778 | } |
779 | 779 | |
780 | 780 | /* |