about summary refs log tree commit diff
path: root/string/bits
diff options
context:
space:
mode:
Diffstat (limited to 'string/bits')
-rw-r--r--string/bits/string2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/string/bits/string2.h b/string/bits/string2.h
index f27ea6269d..d81f02fb5d 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -497,7 +497,7 @@ __strcpy_small (char *__dest,
     __STRING2_COPY_ARR6 __sca6;
     __STRING2_COPY_ARR7 __sca7;
     __STRING2_COPY_ARR8 __sca8;
-  } *__u = __dest;
+  } *__u = (void *) __dest;
   switch (__srclen)
     {
     case 1:
@@ -660,11 +660,11 @@ __stpcpy_small (char *__dest,
     __STRING2_COPY_ARR6 __sca6;
     __STRING2_COPY_ARR7 __sca7;
     __STRING2_COPY_ARR8 __sca8;
-  } *__u = __dest;
+  } *__u = (void *) __dest;
   switch (__srclen)
     {
     case 1:
-      __u->__uc = '\0';
+      __u->__c = '\0';
       break;
     case 2:
       __extension__ __u->__sca2 = __src2;