liblog: logprint: printable nul

(cherry pick from commit faa92e9915)

Change-Id: I57d1f86ce040ad196c558bb72ac0464af793c214
This commit is contained in:
Mark Salyzyn 2015-09-08 07:57:27 -07:00 committed by Rom Lemarchand
parent 3f78f93302
commit 26499e41ae

View file

@ -819,7 +819,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;
}
/*