Fix incorrect format placeholder

for commit 749a9e20c9
pull/210/head
Peter Eisentraut 3 months ago
parent b0a4c3e88b
commit 8969194b73
  1. 2
      contrib/pgcrypto/crypt-gensalt.c

@ -214,7 +214,7 @@ _crypt_gensalt_sha(unsigned long count,
/* Skip magic bytes, set by callers */
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,
errcode(ERRCODE_INTERNAL_ERROR),
errmsg("cannot format salt string"));

Loading…
Cancel
Save