exynos: fix font rendering

It would just segfault after a while, since we weren't deferencing
the 'msg' pointer to check for the end of the string.
Eventually this would let 'msg' point to invalid memory.
This commit is contained in:
Tobias Jakobi 2014-08-07 23:26:00 +02:00
parent 64e2a8134b
commit 2312d488aa

View File

@ -1125,7 +1125,7 @@ static int exynos_render_msg(struct exynos_video *vid,
atlas = vid->font_driver->get_atlas(vid->font);
for (; msg; ++msg) {
for (; *msg; ++msg) {
const struct font_glyph *glyph = vid->font_driver->get_glyph(vid->font, (uint8_t)*msg);
if (glyph == NULL)
continue;