1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-21 12:05:57 +03:00

Fix incorrect format placeholder

for commit 749a9e20c97
This commit is contained in:
Peter Eisentraut 2025-04-08 19:12:03 +02:00
parent b0a4c3e88b
commit 8969194b73

View File

@ -214,7 +214,7 @@ _crypt_gensalt_sha(unsigned long count,
/* Skip magic bytes, set by callers */ /* Skip magic bytes, set by callers */
s_ptr += 3; s_ptr += 3;
if ((rc = pg_snprintf(s_ptr, 18, "rounds=%ld$", count)) <= 0) if ((rc = pg_snprintf(s_ptr, 18, "rounds=%lu$", count)) <= 0)
ereport(ERROR, ereport(ERROR,
errcode(ERRCODE_INTERNAL_ERROR), errcode(ERRCODE_INTERNAL_ERROR),
errmsg("cannot format salt string")); errmsg("cannot format salt string"));