diff options
Diffstat (limited to 'firmware/drivers/lcd-2bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-2bit-vert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-2bit-vert.c b/firmware/drivers/lcd-2bit-vert.c index 801927eb37..57d27d2ead 100644 --- a/firmware/drivers/lcd-2bit-vert.c +++ b/firmware/drivers/lcd-2bit-vert.c | |||
@@ -1154,7 +1154,7 @@ void lcd_puts_scroll_style_offset(int x, int y, const unsigned char *string, | |||
1154 | } | 1154 | } |
1155 | 1155 | ||
1156 | end = strchr(s->line, '\0'); | 1156 | end = strchr(s->line, '\0'); |
1157 | strncpy(end, (char *)string, current_vp->width/2); | 1157 | strlcpy(end, (char *)string, current_vp->width/2); |
1158 | 1158 | ||
1159 | s->vp = current_vp; | 1159 | s->vp = current_vp; |
1160 | s->y = y; | 1160 | s->y = y; |