diff options
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index 5fb652431c..f11fd6fdf9 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c | |||
@@ -845,7 +845,7 @@ void LCDFN(puts_scroll_style_offset)(int x, int y, const unsigned char *string, | |||
845 | } | 845 | } |
846 | 846 | ||
847 | end = strchr(s->line, '\0'); | 847 | end = strchr(s->line, '\0'); |
848 | strncpy(end, string, current_vp->width/2); | 848 | strlcpy(end, string, current_vp->width/2); |
849 | 849 | ||
850 | s->vp = current_vp; | 850 | s->vp = current_vp; |
851 | s->y = y; | 851 | s->y = y; |