aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/mbtowc.c2
-rw-r--r--stdlib/wctomb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/mbtowc.c b/stdlib/mbtowc.c
index aeac2ce0b8..cba34d32a4 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 757e6adaad..174bbf46c2 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;
}