From: Michael Jerris Date: Fri, 3 Mar 2006 08:26:00 +0000 (+0000) Subject: use directory separator #define instead of hard-coded / X-Git-Tag: v1.0-beta1~3137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d8a280cde6b04c1301d55c0357abfc2a2a2730a;p=thirdparty%2Ffreeswitch.git use directory separator #define instead of hard-coded / git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@739 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index 143c3f8687..f1e15a4b11 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -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); } }