unaccent: Fix allocation size for target characters on initial load

Michael Paquier <michael@paquier.xyz>

Commit: f19669fed3efe872425c80d4b1f45bf59267b7ea
Author: Michael Paquier <michael@paquier.xyz>
Date: 2023-09-25T00:31:48Z
Releases: 17.0
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.

Files

PathChange+/−
contrib/unaccent/unaccent.c modified +2 −2