commit | 60d68715581bb597dfbc32e1fabdb1cab36c592c | [log] [tgz] |
---|---|---|
author | Michael Wright <michaelwr@google.com> | Mon May 16 21:23:07 2016 +0100 |
committer | Michael Wright <michaelwr@google.com> | Mon May 16 21:23:07 2016 +0100 |
tree | 65adab33efa2b91c69e38ee659e898efa6a2d359 | |
parent | 118640b3bbaff32600de42132526a82fb41e767a [diff] |
Fix strstr16. strcmp needs a limit, otherwise it will compare the null terminator with the next character in the haystack, which results in the compare failing for all searches except where the needle is found at the very end. Bug: 28663748 Change-Id: I1939dc4037c2f2a75d617943b063d2d38a8c5e3a