StartsWith now allows std::string prefixes.
Bug: N/A
Test: builds
Change-Id: I2e24632e95f2bf929c2c000152c5c4076d53186e
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 0936ed0..5e6e74f 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -426,7 +426,7 @@
mntent* mentry;
while ((mentry = getmntent(fp)) != NULL) {
auto test = std::string(mentry->mnt_dir) + "/";
- if (android::base::StartsWith(test, prefix.c_str())) {
+ if (android::base::StartsWith(test, prefix)) {
toUnmount.push_front(test);
}
}