From 5159aa5c0202e1da7f71027f3957d758b90d366c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Jul 1999 20:09:13 +0000 Subject: [PATCH] Fix typo. --- stdlib/mbtowc.c | 2 +- stdlib/wctomb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/mbtowc.c b/stdlib/mbtowc.c index aeac2ce0b83..cba34d32a4a 100644 --- a/stdlib/mbtowc.c +++ b/stdlib/mbtowc.c @@ -48,7 +48,7 @@ mbtowc (wchar_t *pwc, const char *s, size_t n) /* This is an extension in the Unix standard which does not directly violate ISO C. */ - memset (&__no_r_state, '\0', siyeof __no_r_state); + memset (&__no_r_state, '\0', sizeof __no_r_state); result = __wcsmbs_gconv_fcts.towc->__stateful; } diff --git a/stdlib/wctomb.c b/stdlib/wctomb.c index 5c9d6927b21..62e0f0e6a93 100644 --- a/stdlib/wctomb.c +++ b/stdlib/wctomb.c @@ -44,7 +44,7 @@ wctomb (char *s, wchar_t wchar) /* This is an extension in the Unix standard which does not directly violate ISO C. */ - memset (&__no_r_state, '\0', siyeof __no_r_state); + memset (&__no_r_state, '\0', sizeof __no_r_state); return __wcsmbs_gconv_fcts.tomb->stateful; } -- 2.47.3