From 66671c84d58d6ae705bac39dc476c3d3b2b81116 Mon Sep 17 00:00:00 2001 From: Yuriy Kaminskiy Date: Thu, 9 Jan 2014 09:49:54 +1300 Subject: 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. --- sysdeps/i386/i686/memmove.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') 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 -- cgit v1.2.3