Skip to content

Commit

Permalink
Duplicate buffer size in case all chars are double unit UTF-16 such a…
Browse files Browse the repository at this point in the history
…s emojis.
  • Loading branch information
okibcn authored and Bill-Gray committed May 9, 2023
1 parent 2050706 commit 7089b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wincon/pdcdisp.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static void _show_run_of_nonansi_characters( attr_t attr,
int fore, int back, const bool blink,
const int lineno, const int x, const chtype *srcp, const int len)
{
CHAR_INFO buffer[MAX_PACKET_SIZE];
CHAR_INFO buffer[MAX_PACKET_SIZE*2];
COORD bufSize, bufPos;
SMALL_RECT sr;
WORD mapped_attr;
Expand Down

0 comments on commit 7089b2e

Please sign in to comment.