summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-2bit-horz.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-07-14 14:15:33 +0000
committerNils Wallménius <nils@rockbox.org>2009-07-14 14:15:33 +0000
commit5905b0be3e92aed0aec499a8429bc805baee03c6 (patch)
treea76b685439323ec6b150385c953a500ca7c6fea8 /firmware/drivers/lcd-2bit-horz.c
parent3d4701a6e41616cf581a297bab1451cf2db70249 (diff)
downloadrockbox-5905b0be3e92aed0aec499a8429bc805baee03c6.tar.gz
rockbox-5905b0be3e92aed0aec499a8429bc805baee03c6.zip
Missed one strncpy call
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-2bit-horz.c')
-rw-r--r--firmware/drivers/lcd-2bit-horz.c2
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;