• Nicolas Pitre's avatar
    [ARM PATCH] 1293/1: fix to the ARM optimized strchr() · 5d9d305b
    Nicolas Pitre authored
    Two bugs here:
    
    1) The return value of strchr("foo",0) should be the start address of
       "foo" + 3, not NULL.
    
    2) Since the second argument for strchr() is defined as an int, some
       characters such as 'é' might validly end up to be the value -23 due to
       signedness issues.  Corectly handle those.
    5d9d305b
strchr.S 547 Bytes