diff options
-rw-r--r-- | scpmisc.h | 4 | ||||
-rw-r--r-- | svr-agentfwd.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -27,8 +27,8 @@ struct passwd *pwcopy(struct passwd *); typedef struct arglist arglist; struct arglist { char **list; - int num; - int nalloc; + u_int num; + u_int nalloc; }; void addargs(arglist *, char *, ...); void replacearg(arglist *, u_int, char *, ...); diff --git a/svr-agentfwd.c b/svr-agentfwd.c index 37c30b0..cff80f7 100644 --- a/svr-agentfwd.c +++ b/svr-agentfwd.c @@ -209,7 +209,7 @@ static int bindagent(int fd, struct ChanSess * chansess) { struct sockaddr_un addr; unsigned int prefix; - char path[sizeof(addr.sun_path)], sockfile[sizeof(addr.sun_path)]; + char path[(sizeof(addr.sun_path)-1)/2], sockfile[(sizeof(addr.sun_path)-1)/2]; mode_t mode; int i; uid_t uid; |