summaryrefslogtreecommitdiff
path: root/firmware
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
parent3d4701a6e41616cf581a297bab1451cf2db70249 (diff)
Missed one strncpy call
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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,
}
end = strchr(s->line, '\0');
- strncpy(end, (char *)string, current_vp->width/2);
+ strlcpy(end, (char *)string, current_vp->width/2);
s->vp = current_vp;
s->y = y;