liblog: logprint: printable nul
Change-Id: I57d1f86ce040ad196c558bb72ac0464af793c214
This commit is contained in:
parent
2d159bf3b5
commit
faa92e9915
|
@ -774,7 +774,7 @@ WEAK ssize_t utf8_character_length(const char *src, size_t len)
|
|||
uint32_t utf32;
|
||||
|
||||
if ((first_char & 0x80) == 0) { /* ASCII */
|
||||
return 1;
|
||||
return first_char ? 1 : -1;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue