From d6f5a6bac175b8c24366360ccab865ff3eedeeb4 Mon Sep 17 00:00:00 2001 From: bmax Date: Fri, 22 Dec 2023 13:26:22 +0800 Subject: [PATCH] fix su path trim --- user/android/user_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/android/user_init.c b/user/android/user_init.c index cf016f88..3f1dab09 100644 --- a/user/android/user_init.c +++ b/user/android/user_init.c @@ -143,7 +143,7 @@ static void load_config_su_path(const char *key) } char linebuf[SU_PATH_MAX_LEN] = { '\0' }; char *path = fgets(linebuf, sizeof(linebuf), file); - if (path) sc_su_reset_path(key, path); + if (path) sc_su_reset_path(key, trim(path)); fclose(file); }