You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: Fix snprintf
This commit is contained in:
@@ -35,7 +35,7 @@ bool become_manager(const char* pkg) {
|
|||||||
if (userId == 0) {
|
if (userId == 0) {
|
||||||
sprintf(param, "/data/data/%s", pkg);
|
sprintf(param, "/data/data/%s", pkg);
|
||||||
} else {
|
} else {
|
||||||
snprintf(param, 10, "/data/user/%d/%s", userId, pkg);
|
snprintf(param, sizeof(param), "/data/user/%d/%s", userId, pkg);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ksuctl(CMD_BECOME_MANAGER, param, nullptr);
|
return ksuctl(CMD_BECOME_MANAGER, param, nullptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user