summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorYuriy Kaminskiy <yumkam@gmail.com>2014-01-09 09:49:54 +1300
committerMaxim Kuvyrkov <maxim@kugelworks.com>2014-01-09 09:49:54 +1300
commit66671c84d58d6ae705bac39dc476c3d3b2b81116 (patch)
tree3d7bf9eee443213d53d505ad3a640c521a038460 /sysdeps
parent38f3458175ecf7c3588bd5b6e465f4d9205fbe1c (diff)
downloadglibc-66671c84d58d6ae705bac39dc476c3d3b2b81116.tar.gz
glibc-66671c84d58d6ae705bac39dc476c3d3b2b81116.tar.xz
glibc-66671c84d58d6ae705bac39dc476c3d3b2b81116.zip
Fix a thinko/typo in i686's memmove (aka __memmove_ia32).
	* sysdeps/i386/i686/memmove.S (memmove): Compare distance between
	SRC and DEST against LEN.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/i686/memmove.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/i686/memmove.S b/sysdeps/i386/i686/memmove.S
index d9017388f9..4b8785f22c 100644
--- a/sysdeps/i386/i686/memmove.S
+++ b/sysdeps/i386/i686/memmove.S
@@ -58,8 +58,8 @@ ENTRY (memmove)
 
 	movl	%edi, %eax
 	subl	%esi, %eax
-	cmpl	%eax, %edi
-	jae	3f
+	cmpl	%eax, %ecx
+	ja	3f
 
 	cld
 	shrl	$1, %ecx