mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-30 19:50:24 +00:00
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:
parent
64e2a8134b
commit
2312d488aa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user