]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix typo.
authorUlrich Drepper <drepper@redhat.com>
Wed, 28 Jul 1999 20:09:13 +0000 (20:09 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 28 Jul 1999 20:09:13 +0000 (20:09 +0000)
stdlib/mbtowc.c
stdlib/wctomb.c

index aeac2ce0b83f34fc23297a342d624a5bdcc6bcd0..cba34d32a4aabce62addd48714e13d5c4b7c5e53 100644 (file)
@@ -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;
     }
index 5c9d6927b2169b5eed27fbdc37cd34de2f9a5baa..62e0f0e6a9361f169f393f8fb7adcce17f5d7cb9 100644 (file)
@@ -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;
     }