diff options
author | Darren Tucker <dtucker@zip.com.au> | 2006-07-12 14:23:35 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2006-07-12 14:23:35 +0200 |
commit | 57f4224677c5678d6256df865ea858de9ad915f3 (patch) | |
tree | c0553732d73f0a1ce9ab669ced9503bb63e752f0 /ssh.c | |
parent | - stevesk@cvs.openbsd.org 2006/07/11 20:07:25 (diff) | |
download | openssh-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |