Use psprintf() instead of snprintf().
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 3 Aug 2024 05:30:33 +0000 (14:30 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 3 Aug 2024 05:43:07 +0000 (14:43 +0900)
commitb5fbad71edc1e4afc6ae3e9c43dc920b10bb76d6
treec591660bfbdf4f9566d34515fbfcb7fe1f8a655e
parentaf64bd7ca5feedc6268883da08b979223a233817
Use psprintf() instead of snprintf().

Previously fixed size buffers were used for snprintf in the file. It's
not appropriate to use snprintf here because the result string could
exceed the buffer size and it could lead to incomplete command or path
used after.

Backpatch-through: 4.1.
src/query_cache/pool_memqcache.c