diff options
Diffstat (limited to 'firmware/drivers/lcd-charcell.c')
-rw-r--r-- | firmware/drivers/lcd-charcell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index ca5809899f..33337daf19 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c | |||
@@ -496,7 +496,7 @@ void lcd_puts_scroll_offset(int x, int y, const unsigned char *string, | |||
496 | } | 496 | } |
497 | 497 | ||
498 | end = strchr(s->line, '\0'); | 498 | end = strchr(s->line, '\0'); |
499 | strncpy(end, string, utf8seek(s->line, current_vp->width)); | 499 | strlcpy(end, string, utf8seek(s->line, current_vp->width)); |
500 | 500 | ||
501 | s->vp = current_vp; | 501 | s->vp = current_vp; |
502 | s->y = y; | 502 | s->y = y; |