Be more strict about invalid UTF-8.

This commit is contained in:
nicm
2015-11-14 10:56:31 +00:00
parent c56b81a2ce
commit 64333e3ef8
6 changed files with 76 additions and 54 deletions

2
tmux.h
View File

@ -624,7 +624,7 @@ struct utf8_data {
u_char have;
u_char size;
u_char width;
u_char width; /* 0xff if invalid */
} __packed;
/* Grid attributes. */