summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--scpmisc.h4
-rw-r--r--svr-agentfwd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/scpmisc.h b/scpmisc.h
index f5e01d6..369b327 100644
--- a/scpmisc.h
+++ b/scpmisc.h
@@ -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;