aboutsummaryrefslogtreecommitdiff
path: root/vt.c
diff options
context:
space:
mode:
Diffstat (limited to 'vt.c')
-rw-r--r--vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vt.c b/vt.c
index 8314c060..5d4127c5 100644
--- a/vt.c
+++ b/vt.c
@@ -757,7 +757,7 @@ action_print(struct terminal *term, uint8_t c)
if (unlikely(term->charset[term->selected_charset] == CHARSET_GRAPHIC) &&
c >= 0x41 && c <= 0x7e)
{
- strcpy(cell->c, vt100_0[c - 0x41]);
+ strncpy(cell->c, vt100_0[c - 0x41], sizeof(cell->c));
} else {
//LOG_DBG("print: ASCII: %c", c);
cell->c[0] = c;