diff options
| -rw-r--r-- | vt.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -757,7 +757,9 @@ action_print(struct terminal *term, uint8_t c) if (unlikely(term->charset[term->selected_charset] == CHARSET_GRAPHIC) && c >= 0x41 && c <= 0x7e) { - strncpy(cell->c, vt100_0[c - 0x41], sizeof(cell->c)); + const char *glyph = vt100_0[c - 0x41]; + if (glyph != NULL) + strncpy(cell->c, glyph, sizeof(cell->c)); } else { //LOG_DBG("print: ASCII: %c", c); cell->c[0] = c; |
