mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Missed one strncpy call
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21864 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3d4701a6e4
commit
5905b0be3e
1 changed files with 1 additions and 1 deletions
|
|
@ -1107,7 +1107,7 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string,
|
|||
}
|
||||
|
||||
end = strchr(s->line, '\0');
|
||||
strncpy(end, (char *)string, current_vp->width/2);
|
||||
strlcpy(end, (char *)string, current_vp->width/2);
|
||||
|
||||
s->vp = current_vp;
|
||||
s->y = y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue