Commit 4e55ea34 authored by Russell King's avatar Russell King

Fix buglet in ARM string functions

parent 2d7e9e61
...@@ -18,7 +18,7 @@ ENTRY(strrchr) ...@@ -18,7 +18,7 @@ ENTRY(strrchr)
mov r3, #0 mov r3, #0
1: ldrb r2, [r0], #1 1: ldrb r2, [r0], #1
teq r2, r1 teq r2, r1
moveq r3, r0 subeq r3, r0, #1
teq r2, #0 teq r2, #0
bne 1b bne 1b
mov r0, r3 mov r0, r3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment