git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6971a83) | patch
Pass Size as a 2nd argument for snprintf() in tablesync.c.
2022年9月21日 04:50:37 +0000 (10:20 +0530)
2022年9月21日 04:50:37 +0000 (10:20 +0530)
commit a932824dfe068f563e9abb9264f6e071f23e67ae
Pass Size as a 2nd argument for snprintf() in tablesync.c.

Previously the following snprintf() wrappers:

* ReplicationSlotNameForTablesync()
* ReplicationOriginNameForTablesync()

... used int as a second argument of snprintf() while the actual type of it
is size_t. Although it doesn't fail at present better replace it with Size
for consistency with the rest of the system.

Author: Aleksander Alekseev
Reviewed-By: Peter Smith
Discussion: https://postgr.es/m/CAHut%2BPsa8hhfSE6ozUK-ih7GkQziAVAf4f3bqiXEj2nQiu-43g%40mail.gmail.com
src/backend/replication/logical/tablesync.c diff | blob | blame | history
src/include/replication/slot.h diff | blob | blame | history
src/include/replication/worker_internal.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /