summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh.c
diff options
context:
space:
mode:
authorstevesk <stevesk@openbsd.org>2006-07-11 20:16:43 +0000
committerstevesk <stevesk@openbsd.org>2006-07-11 20:16:43 +0000
commite5cb3c6cdb0147057b6f2d0323049648a19ddb3e (patch)
tree586173961c3db2045a672574dc8627c49778e9ab /usr.bin/ssh/ssh.c
parentmove #include <errno.h> out of includes.h; ok markus@ (diff)
downloadwireguard-openbsd-e5cb3c6cdb0147057b6f2d0323049648a19ddb3e.tar.xz
wireguard-openbsd-e5cb3c6cdb0147057b6f2d0323049648a19ddb3e.zip
cast asterisk field precision argument to int to remove warning;
ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh.c')
-rw-r--r--usr.bin/ssh/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index aa3662f1e4e..4b1c8b4ee2b 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.283 2006/07/11 18:50:48 markus Exp $ */
+/* $OpenBSD: ssh.c,v 1.284 2006/07/11 20:16:43 stevesk Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1261,7 +1261,7 @@ env_permitted(char *env)
if ((cp = strchr(env, '=')) == NULL || cp == env)
return (0);
- ret = snprintf(name, sizeof(name), "%.*s", (cp - env), env);
+ ret = snprintf(name, sizeof(name), "%.*s", (int)(cp - env), env);
if (ret <= 0 || (size_t)ret >= sizeof(name))
fatal("env_permitted: name '%.100s...' too long", env);