diff options
Diffstat (limited to 'firmware/drivers/lcd-2bit-horz.c')
-rw-r--r-- | firmware/drivers/lcd-2bit-horz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-2bit-horz.c b/firmware/drivers/lcd-2bit-horz.c index 70f7261e35..463eece569 100644 --- a/firmware/drivers/lcd-2bit-horz.c +++ b/firmware/drivers/lcd-2bit-horz.c | |||
@@ -1107,7 +1107,7 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
1107 | } | 1107 | } |
1108 | 1108 | ||
1109 | end = strchr(s->line, '\0'); | 1109 | end = strchr(s->line, '\0'); |
1110 | strncpy(end, (char *)string, current_vp->width/2); | 1110 | strlcpy(end, (char *)string, current_vp->width/2); |
1111 | 1111 | ||
1112 | s->vp = current_vp; | 1112 | s->vp = current_vp; |
1113 | s->y = y; | 1113 | s->y = y; |