提交 9d8a280c authored 作者: Michael Jerris's avatar Michael Jerris

use directory separator #define instead of hard-coded /

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@739 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 a73ef856
......@@ -203,11 +203,11 @@ static void process_module_file(char *dir, char *fname)
if (strchr(file, '.')) {
len = strlen(dir) + strlen(file) + 3;
path = (char *) switch_core_alloc(loadable_modules.pool, len);
snprintf(path, len, "%s/%s", dir, file);
snprintf(path, len, "%s%s%s", dir, SWITCH_PATH_SEPARATOR, file);
} else {
len = strlen(dir) + strlen(file) + 7;
path = (char *) switch_core_alloc(loadable_modules.pool, len);
snprintf(path, len, "%s/%s%s", dir, file, ext);
snprintf(path, len, "%s%s%s%s", dir, SWITCH_PATH_SEPARATOR, file, ext);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论