From 5ca1f6dda6863a6c70c4d3acf0c90d7eaae995aa Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Mon, 7 Nov 2022 08:30:49 +0800 Subject: [PATCH] use newest function normalize_path from libfastcommon --- src/sf_global.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sf_global.h b/src/sf_global.h index a5aa21d..a3e88b9 100644 --- a/src/sf_global.h +++ b/src/sf_global.h @@ -260,7 +260,10 @@ int sf_load_global_base_path(IniFullContext *ini_ctx); static inline void sf_set_global_base_path(const char *base_path) { - normalize_path(NULL, base_path, SF_G_BASE_PATH_STR, + string_t path_string; + + FC_SET_STRING(path_string, (char *)base_path); + normalize_path(NULL, &path_string, SF_G_BASE_PATH_STR, sizeof(SF_G_BASE_PATH_STR)); SF_G_BASE_PATH_INITED = true; }