mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 20:57:37 +00:00
Fix segfault on several devices
This commit is contained in:
parent
118a9f224e
commit
b7f69238a1
@ -16,8 +16,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#define str_contains(s, ss) ((s).find(ss) != string::npos)
|
||||
#define str_starts(s, ss) ((s).compare(0, strlen(ss), ss) == 0)
|
||||
#define str_contains(s, ss) ((ss) != nullptr && (s).find(ss) != string::npos)
|
||||
#define str_starts(s, ss) ((ss) != nullptr && (s).compare(0, strlen(ss), ss) == 0)
|
||||
|
||||
std::vector<std::string> file_to_vector(const char *filename);
|
||||
char *strdup2(const char *s, size_t *size = nullptr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user