From 8d80515b007e90d3114af1032da5243705a249c7 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 1 Nov 1996 01:42:08 +0000 Subject: Fix incorrect length argument to memset() function. Closes PR#1937. Submitted by: Archie Cobbs --- usr.sbin/inetd/inetd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/inetd') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 72d9bbd..88135ea 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -40,7 +40,7 @@ static char copyright[] = #ifndef lint /* from: @(#)inetd.c 8.4 (Berkeley) 4/13/94"; */ static char inetd_c_rcsid[] = - "$Id: inetd.c,v 1.13 1996/08/09 22:20:24 julian Exp $"; + "$Id: inetd.c,v 1.14 1996/10/28 23:02:38 joerg Exp $"; #endif /* not lint */ /* @@ -354,7 +354,7 @@ main(argc, argv, envp) #define DUMMYSIZE 100 char dummy[DUMMYSIZE]; - (void)memset(dummy, 'x', sizeof(DUMMYSIZE) - 1); + (void)memset(dummy, 'x', DUMMYSIZE - 1); dummy[DUMMYSIZE - 1] = '\0'; (void)setenv("inetd_dummy", dummy, 1); } -- cgit v1.1