summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2016-09-21 17:44:21 +0000
committerDamien Miller <djm@cvs.openbsd.org>2016-09-21 17:44:21 +0000
commitcefd7433eb54cfa93a6f450c736e209c767ff209 (patch)
treeca41af14710df14e33d4ecc01f6610228263bb7d
parentad6413e2d9739babf617a45bbe5a2be97f3e2047 (diff)
cast uint64_t for printf
-rw-r--r--usr.bin/ssh/auth2-pubkey.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-pubkey.c b/usr.bin/ssh/auth2-pubkey.c
index dc0c9aae969..d288b032300 100644
--- a/usr.bin/ssh/auth2-pubkey.c
+++ b/usr.bin/ssh/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.58 2016/09/21 01:34:45 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.59 2016/09/21 17:44:20 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
*
@@ -692,7 +692,8 @@ match_principals_command(struct passwd *user_pw, const struct sshkey *key)
error("%s: sshkey_to_base64 failed: %s", __func__, ssh_err(r));
goto out;
}
- snprintf(serial_s, sizeof(serial_s), "%llu", cert->serial);
+ snprintf(serial_s, sizeof(serial_s), "%llu",
+ (unsigned long long)cert->serial);
for (i = 1; i < ac; i++) {
tmp = percent_expand(av[i],
"u", user_pw->pw_name,