Skip to content

Commit

Permalink
Fix text selection memory corruption with long codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusikkala committed Mar 4, 2023
1 parent ee3f16a commit bff53ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdcurses/getch.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static void _copy(void)

#ifdef PDC_WIDE
wtmp = (wchar_t *)malloc((len + 1) * sizeof(wchar_t));
len *= 3;
len *= 4;
#endif
tmp = (char *)malloc(len + 1);

Expand Down

0 comments on commit bff53ab

Please sign in to comment.