mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-25 00:05:16 +00:00
"Fix text selection memory corruption with long codepoints", by
juliusikkala.
This commit is contained in:
@@ -158,7 +158,7 @@ static void _copy(void)
|
||||
|
||||
#ifdef PDC_WIDE
|
||||
wtmp = malloc((len + 1) * sizeof(wchar_t));
|
||||
len *= 3;
|
||||
len *= 4;
|
||||
#endif
|
||||
tmp = malloc(len + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user