From 5a5b13196c78af860e6678b2965bf682d290bd34 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 15 Apr 2003 08:05:34 +0000 Subject: incorrect buf size; ok itojun --- usr.bin/rsh/kcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/rsh/kcmd.c') 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); -- cgit v1.2.3