summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-07-12 22:23:35 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-07-12 22:23:35 +1000
commit57f4224677c5678d6256df865ea858de9ad915f3 (patch)
treec0553732d73f0a1ce9ab669ced9503bb63e752f0 /ssh.c
parent39972493467dd9a32a117e85bcbff9aa1e7f3c8d (diff)
- 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 @@
1/* $OpenBSD: ssh.c,v 1.283 2006/07/11 18:50:48 markus Exp $ */ 1/* $OpenBSD: ssh.c,v 1.284 2006/07/11 20:16:43 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1282,7 +1282,7 @@ env_permitted(char *env)
1282 1282
1283 if ((cp = strchr(env, '=')) == NULL || cp == env) 1283 if ((cp = strchr(env, '=')) == NULL || cp == env)
1284 return (0); 1284 return (0);
1285 ret = snprintf(name, sizeof(name), "%.*s", (cp - env), env); 1285 ret = snprintf(name, sizeof(name), "%.*s", (int)(cp - env), env);
1286 if (ret <= 0 || (size_t)ret >= sizeof(name)) 1286 if (ret <= 0 || (size_t)ret >= sizeof(name))
1287 fatal("env_permitted: name '%.100s...' too long", env); 1287 fatal("env_permitted: name '%.100s...' too long", env);
1288 1288