diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-15 08:05:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-15 08:05:34 +0000 |
commit | 5a5b13196c78af860e6678b2965bf682d290bd34 (patch) | |
tree | a0f6e02c28cabe03ff68930ff9243241e9803c61 /usr.bin/rsh | |
parent | 8b9f997ca0d6a7c6f9edf852b3b30b8fcb39ba5a (diff) |
incorrect buf size; ok itojun
Diffstat (limited to 'usr.bin/rsh')
-rw-r--r-- | usr.bin/rsh/kcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rsh/kcmd.c b/usr.bin/rsh/kcmd.c index 9c2235faeb4..a6db09af20e 100644 --- a/usr.bin/rsh/kcmd.c +++ b/usr.bin/rsh/kcmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kcmd.c,v 1.5 2002/09/06 18:55:04 deraadt Exp $ */ +/* $OpenBSD: kcmd.c,v 1.6 2003/04/15 08:05:33 deraadt Exp $ */ /* $NetBSD: kcmd.c,v 1.2 1995/03/21 07:58:32 cgd Exp $ */ /* @@ -39,7 +39,7 @@ static char Xsccsid[] = "derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88"; static char sccsid[] = "@(#)kcmd.c 8.2 (Berkeley) 8/19/93"; #else -static char rcsid[] = "$OpenBSD: kcmd.c,v 1.5 2002/09/06 18:55:04 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: kcmd.c,v 1.6 2003/04/15 08:05:33 deraadt Exp $"; #endif #endif /* not lint */ @@ -169,7 +169,7 @@ kcmd(int *sock, char **ahost, u_short rport, char *locuser, char *remuser, write(s, "", 1); lport = 0; } else { - char num[8]; + char num[12]; int s2 = getport(&lport), s3; socklen_t len = sizeof(from); |