Fix a bug in the memory reallocation code of PyUnicode_TranslateCharmap().
charmaptranslate_makespace() allocated more memory than required for the next replacement but didn't remember that fact, so memory size was growing exponentially every time a replacement string is longer that one character. This fixes SF bug #828737.
W
Walter Dörwald committed
4894c306266b5fb3a6cf8429cbb6bc31d3e23e4e
Parent: 6a5b027