summaryrefslogtreecommitdiffstats
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-07-12 14:23:35 +0200
committerDarren Tucker <dtucker@zip.com.au>2006-07-12 14:23:35 +0200
commit57f4224677c5678d6256df865ea858de9ad915f3 (patch)
treec0553732d73f0a1ce9ab669ced9503bb63e752f0 /ssh.c
parent - stevesk@cvs.openbsd.org 2006/07/11 20:07:25 (diff)
downloadopenssh-57f4224677c5678d6256df865ea858de9ad915f3.tar.xz
openssh-57f4224677c5678d6256df865ea858de9ad915f3.zip
- stevesk@cvs.openbsd.org 2006/07/11 20:16:43
[ssh.c] cast asterisk field precision argument to int to remove warning; ok markus@
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 2e0ef2f9f..100c095dc 100644
--- a/ssh.c
+++ b/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
@@ -1282,7 +1282,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);