mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-17 15:38:30 +00:00
Proper string buffer size
This commit is contained in:
parent
a6e62e07a2
commit
46447f7cfd
@ -73,10 +73,10 @@ ex(fromUid), ex(toUid), ex(pid), ex(policy), \
|
|||||||
ex(command.data()), ex(notify)
|
ex(command.data()), ex(notify)
|
||||||
|
|
||||||
void app_log(const su_context &ctx) {
|
void app_log(const su_context &ctx) {
|
||||||
char fromUid[16];
|
char fromUid[32];
|
||||||
sprintf(fromUid, "from.uid:i:%d", get_uid(ctx.info));
|
sprintf(fromUid, "from.uid:i:%d", get_uid(ctx.info));
|
||||||
|
|
||||||
char toUid[16];
|
char toUid[32];
|
||||||
sprintf(toUid, "to.uid:i:%d", ctx.req.uid);
|
sprintf(toUid, "to.uid:i:%d", ctx.req.uid);
|
||||||
|
|
||||||
char pid[16];
|
char pid[16];
|
||||||
@ -98,7 +98,7 @@ void app_log(const su_context &ctx) {
|
|||||||
"notify", ex(fromUid), ex(policy)
|
"notify", ex(fromUid), ex(policy)
|
||||||
|
|
||||||
void app_notify(const su_context &ctx) {
|
void app_notify(const su_context &ctx) {
|
||||||
char fromUid[16];
|
char fromUid[32];
|
||||||
sprintf(fromUid, "from.uid:i:%d", get_uid(ctx.info));
|
sprintf(fromUid, "from.uid:i:%d", get_uid(ctx.info));
|
||||||
|
|
||||||
char policy[16];
|
char policy[16];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user