From f67f913cc9dc066da7c06ab2279b86250f6bd9de Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Fri, 21 Oct 2011 21:02:41 +0330 Subject: [PATCH] string: fix strrchr() on x86 --- x86/string.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x86/string.s b/x86/string.s index 8be7458..a361932 100644 --- a/x86/string.s +++ b/x86/string.s @@ -192,13 +192,13 @@ strrchr: dec edi .loop: inc edi + mov al, [edi] test al, al jz .done - mov al, [edi] cmp al, cl jnz .loop mov edx, edi - jz .loop + jmp .loop .done: mov eax, edx pop edi -- 2.11.4.GIT