]> err.no Git - linux-2.6/commit
[IA64] strcpy returns NULL pointer and not destination pointer
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Wed, 3 May 2006 18:53:43 +0000 (11:53 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 5 May 2006 18:34:55 +0000 (11:34 -0700)
commit3e6e155646706f1ef9f791a4402d145f112a3f8d
tree43e3327d4c053a0a595925aa3679bb5e1e0f87aa
parentd98550e334715b2d9e45f8f0f4e1608720108640
[IA64] strcpy returns NULL pointer and not destination pointer

Bob Picco noted that 6edfba1b33c701108717f4e036320fc39abe1912
dropped the -ffreestanding compiler flag from the top level
Makefile, which allows the compiler to substitute memcpy() in
places where strcpy() is used with a known size source string.
But the ia64 memcpy() returns 0 for success, and "bytes copied"
for failure.

Fix to return the address of the destination string (like
stdlibc version, and other architectures).  There are no
places where ia64 specific code makes use of the non-standard
return value.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/lib/memcpy_mck.S