]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Inappropriate code style for Intel MPX at wcsmbs/wcpcpy.c. Use other implementation...
authorLiubov Dmitrieva <liubov.dmitrieva@intel.com>
Mon, 27 May 2013 14:54:53 +0000 (18:54 +0400)
committerLiubov Dmitrieva <ldmitrie@sourceware.org>
Wed, 23 Oct 2013 15:07:36 +0000 (19:07 +0400)
wcsmbs/wcpcpy.c

index 6f952b45d7a9db58cf6752cbb0873f08f94c477a..4c541b14dc43f6464652febed128e9d881042785 100644 (file)
@@ -18,8 +18,9 @@
 
 #include <wchar.h>
 
-#define __need_ptrdiff_t
-#include <stddef.h>
+#ifndef __CHKP__
+# define __need_ptrdiff_t
+# include <stddef.h>
 
 
 /* Copy SRC to DEST, returning the address of the terminating L'\0' in
@@ -42,5 +43,14 @@ __wcpcpy (dest, src)
 
   return wcp;
 }
+#else
 
+wchar_t *
+__wcpcpy (wchar_t *dst, const wchar_t *src)
+{
+  while ((*dst++ = *src++) != L'\0');
+  return dst - 1;
+}
+
+#endif
 weak_alias (__wcpcpy, wcpcpy)