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_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/504953029af3008c18bafef2381662848cb547ad

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

Reply via email to