summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2006-07-11 20:16:44 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2006-07-11 20:16:44 +0000
commit6c2ae068a39931c92e23486a52878fe6b171f63f (patch)
tree641beb7577683699bbb283268e2f0e909267623d /usr.bin
parent740e1f5357744919283fb440711e803850c19812 (diff)
cast asterisk field precision argument to int to remove warning;
ok markus@
Diffstat (limited to 'usr.bin')
-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);