From d546883ebb589fbf6657b84654d39ff70cad2e65 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Fri, 22 Sep 2023 10:09:29 +0900 Subject: [PATCH] fix dropbear path processing --- tools/patches/dropbear-localoptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patches/dropbear-localoptions.h b/tools/patches/dropbear-localoptions.h index f279b4a..265addf 100644 --- a/tools/patches/dropbear-localoptions.h +++ b/tools/patches/dropbear-localoptions.h @@ -20,7 +20,7 @@ static const char* get_sftp_server_path() { strncpy(path, SFTPSERVER_PATH_FALLBACK, sizeof(path)); return path; } - last_slash = strrchr(path, '/'); + last_slash = strrchr(dropbear_path, '/'); if (last_slash == NULL) { strncpy(path, SFTPSERVER_PATH_FALLBACK, sizeof(path)); return path;