"Fix text selection memory corruption with long codepoints", by

juliusikkala.
This commit is contained in:
William McBrine
2023-06-26 01:12:45 -04:00
parent 7d8cfb459a
commit 201799a9ee

View File

@@ -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);