Fix incorrect match when looking for files.

This code effectively implemented std::string.endswith, but had a bug
where it would match when the needle string was exactly 1 character
longer than the haystack string.

Bug: 144111347
Test: Run assemble_cvd
Change-Id: I0183a128674990f483472d2539a9ce81ca61d0d5
1 file changed
tree: a6242efa3e1d1842ebf17221539c6e2ec2bc806b
  1. common/
  2. guest/
  3. host/
  4. tests/
  5. tools/
  6. Android.bp
  7. Android.mk
  8. OWNERS
  9. TEST_MAPPING