forked from len0rd/rockbox
skins: Fix buffer overflow in skin_error_format_message()
Change-Id: I54849866c163f2ec7ab9c9f76cfe1b267a4bee56
This commit is contained in:
parent
83d8b25fda
commit
b450707955
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ void skin_error_format_message(void)
|
|||
text[i++] = '.';
|
||||
text[i++] = '.';
|
||||
text[i++] = '.';
|
||||
for (j=error_col-10; error_line_start[j] && error_line_start[j] != '\n'; j++)
|
||||
for (j=error_col-10; j < len && error_line_start[j] && error_line_start[j] != '\n'; j++)
|
||||
text[i++] = error_line_start[j];
|
||||
text[i] = '\0';
|
||||
error_col = 18;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue