]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_strerror_internal): Use memcpy instead of __mempcpy.
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:40:38 +0000 (13:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:40:38 +0000 (13:40 +0000)
sysdeps/mach/_strerror.c

index 7bca7e8bd99a7e5ee8d98b3a4bcacb83939a6d37..2ec896104779f6b23c20180f2b06ac6eccdf8533 100644 (file)
@@ -62,7 +62,8 @@ _strerror_internal (int errnum, char *buf, size_t buflen)
 
       /* Now construct the result while taking care for the destination
         buffer size.  */
-      q = __mempcpy (buf, unk, MIN (unklen, buflen));
+      q = memcpy (buf, unk, MIN (unklen, buflen));
+      q += MIN (unklen, buflen);
       if (unklen < buflen)
        __stpncpy (q, p, buflen - unklen);
 
@@ -93,11 +94,13 @@ _strerror_internal (int errnum, char *buf, size_t buflen)
 
       /* Now construct the result while taking care for the destination
         buffer size.  */
-      q = __mempcpy (buf, unk, MIN (unklen, buflen));
+      q = memcpy (buf, unk, MIN (unklen, buflen));
+      q += MIN (unklen, buflen);
       if (unklen < buflen)
        {
-         q = __mempcpy (q, es->subsystem[sub].subsys_name,
-                        MIN (len, buflen - unklen));
+         q = memcpy (q, es->subsystem[sub].subsys_name,
+                     MIN (len, buflen - unklen));
+         q += MIN (len, buflen - unklen);
          if (unklen + len < buflen)
            {
              *q++ = ' ';