arg mistake to memset

This commit is contained in:
itojun 2000-12-26 06:12:09 +00:00
parent 811fede455
commit b0a406db08

View File

@ -1,4 +1,4 @@
/* $NetBSD: iso2022.c,v 1.4 2000/12/23 12:37:18 itojun Exp $ */ /* $NetBSD: iso2022.c,v 1.5 2000/12/26 06:12:09 itojun Exp $ */
/*- /*-
* Copyright (c)1999 Citrus Project, * Copyright (c)1999 Citrus Project,
@ -30,7 +30,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: iso2022.c,v 1.4 2000/12/23 12:37:18 itojun Exp $"); __RCSID("$NetBSD: iso2022.c,v 1.5 2000/12/26 06:12:09 itojun Exp $");
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
/* /*
@ -943,7 +943,7 @@ _ISO2022_initstate(rl, s)
if (!s) if (!s)
return; return;
state = s; state = s;
memset(state, sizeof(_Iso2022State), 0); memset(state, 0, sizeof(_Iso2022State));
state->gl = 0; state->gl = 0;
state->gr = (CEI(rl)->flags & F_8BIT) ? 1 : -1; state->gr = (CEI(rl)->flags & F_8BIT) ? 1 : -1;