Missed one strncpy call

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21864 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-07-14 14:15:33 +00:00
parent 3d4701a6e4
commit 5905b0be3e

View file

@ -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;