summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-2bit-vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-2bit-vi.c')
-rw-r--r--firmware/drivers/lcd-2bit-vi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-2bit-vi.c b/firmware/drivers/lcd-2bit-vi.c
index 1c0a717d13..0a73f0dd25 100644
--- a/firmware/drivers/lcd-2bit-vi.c
+++ b/firmware/drivers/lcd-2bit-vi.c
@@ -1167,7 +1167,7 @@ void LCDFN(puts_scroll_style_offset)(int x, int y, const unsigned char *string,
1167 } 1167 }
1168 1168
1169 end = strchr(s->line, '\0'); 1169 end = strchr(s->line, '\0');
1170 strncpy(end, (char *)string, current_vp->width/2); 1170 strlcpy(end, (char *)string, current_vp->width/2);
1171 1171
1172 s->vp = current_vp; 1172 s->vp = current_vp;
1173 s->y = y; 1173 s->y = y;