unaccent: Fix allocation size for target characters on initial load
authorMichael Paquier <michael@paquier.xyz>
Mon, 25 Sep 2023 00:31:48 +0000 (09:31 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 25 Sep 2023 00:31:48 +0000 (09:31 +0900)
commitf19669fed3efe872425c80d4b1f45bf59267b7ea
tree362597824a99d7730426ac8093ee6f6fd8d70b16
parent1f9e3a9be539f912babd3ad58d01a4ce6aa0b85b
unaccent: Fix allocation size for target characters on initial load

This led to an overestimation of the size allocated for both the quoted
and non-quoted cases, while using an inconsistent style.  Thinkos in
59f47fb98dab.

Per report from Coverity, with extra input from Tom Lane.
contrib/unaccent/unaccent.c