Skip to content

Commit 8969194

Browse files
committed
Fix incorrect format placeholder
for commit 749a9e2
1 parent b0a4c3e commit 8969194

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pgcrypto/crypt-gensalt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ _crypt_gensalt_sha(unsigned long count,
214214

215215
/* Skip magic bytes, set by callers */
216216
s_ptr += 3;
217-
if ((rc = pg_snprintf(s_ptr, 18, "rounds=%ld$", count)) <= 0)
217+
if ((rc = pg_snprintf(s_ptr, 18, "rounds=%lu$", count)) <= 0)
218218
ereport(ERROR,
219219
errcode(ERRCODE_INTERNAL_ERROR),
220220
errmsg("cannot format salt string"));

0 commit comments

Comments
 (0)