mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
break early if we run past the message length
This commit is contained in:
parent
4dcd08c574
commit
b83d2529e2
@ -326,8 +326,13 @@ static void gl_raster_font_render_line(
|
||||
unsigned skip = msg_tmp - &msg[i];
|
||||
|
||||
if (skip > 1)
|
||||
{
|
||||
i += skip - 1;
|
||||
|
||||
if (i >= msg_len)
|
||||
break;
|
||||
}
|
||||
|
||||
glyph = font->font_driver->get_glyph(font->font_data, code);
|
||||
|
||||
if (!glyph) /* Do something smarter here ... */
|
||||
|
Loading…
x
Reference in New Issue
Block a user