Fix incorrect pointer increment in pgtypes_defmt_scan()

The function incorrectly increments pstr instead of *pstr when
skipping leading spaces. This bug has remained hidden because the
caller already skips leading spaces. There are more redundant
leading-space skipping loops in the function and in find_end_token(),
but I didn't try to clean those up, this commit just fixes the clear
latent bug.

Author: Kyotaro Horiguchi <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]
Backpatch-through: 15

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/15c7a700654ecc745ca541e49b38c06dc3eb88d3

Modified Files
--------------
src/interfaces/ecpg/pgtypeslib/dt_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reply via email to