diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-10 17:21:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-10 17:21:49 +0000 |
| commit | 1a21a5fb29e3db6b442d8af8564ee7655fa77ecd (patch) | |
| tree | 62759dd3093e9851c6406f4fa2281c6066ebcd8a /vt.c | |
| parent | scrollback: in debug, verify all rows in the view are initialized (diff) | |
| parent | terminal: scrolling: prefetch cells of scrolled in lines (diff) | |
Merge branch 'cache-optimize'
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
