diff options
author | 2018-05-11 03:22:55 +0000 | |
---|---|---|
committer | 2018-05-11 03:22:55 +0000 | |
commit | fce685c95f5891c5945bbc54b4d52c7e29b7902a (patch) | |
tree | ffdb63c6d083e13a57f2b80a0dd6b3b04bd6e96b | |
parent | more errx -> err, from schwarze@ (diff) | |
download | wireguard-openbsd-fce685c95f5891c5945bbc54b4d52c7e29b7902a.tar.xz wireguard-openbsd-fce685c95f5891c5945bbc54b4d52c7e29b7902a.zip |
Explicit cast when snprintf'ing an uint64. Prevents warnings on platforms
where int64 is long not long long. ok djm@
-rw-r--r-- | usr.bin/ssh/auth2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index 9230661016c..927aa8b4464 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth2.c,v 1.146 2018/04/13 03:57:26 dtucker Exp $ */ +/* $OpenBSD: auth2.c,v 1.147 2018/05/11 03:22:55 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * @@ -210,7 +210,8 @@ user_specific_delay(const char *user) u_char *hash = xmalloc(len); double delay; - (void)snprintf(b, sizeof b, "%llu%s", options.timing_secret, user); + (void)snprintf(b, sizeof b, "%llu%s", + (unsigned long long)options.timing_secret, user); if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0) fatal("%s: ssh_digest_memory", __func__); /* 0-4.2 ms of delay */ |