mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-25 21:17:24 +00:00
Properly reset string
This commit is contained in:
parent
1e45c63ea5
commit
2b759b84b0
@ -90,6 +90,7 @@ void update_uid_map() {
|
|||||||
size_t len = data_path.length();
|
size_t len = data_path.length();
|
||||||
auto dir = open_dir(APP_DATA_DIR);
|
auto dir = open_dir(APP_DATA_DIR);
|
||||||
for (dirent *entry; (entry = xreaddir(dir.get()));) {
|
for (dirent *entry; (entry = xreaddir(dir.get()));) {
|
||||||
|
data_path.resize(len);
|
||||||
data_path += '/';
|
data_path += '/';
|
||||||
data_path += entry->d_name;
|
data_path += entry->d_name;
|
||||||
data_path += '/';
|
data_path += '/';
|
||||||
@ -102,8 +103,6 @@ void update_uid_map() {
|
|||||||
continue;
|
continue;
|
||||||
uid_proc_map[st.st_uid].emplace_back(hide.second);
|
uid_proc_map[st.st_uid].emplace_back(hide.second);
|
||||||
}
|
}
|
||||||
// Reset string
|
|
||||||
data_path.resize(len);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user