]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use directory separator #define instead of hard-coded /
authorMichael Jerris <mike@jerris.com>
Fri, 3 Mar 2006 08:26:00 +0000 (08:26 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 3 Mar 2006 08:26:00 +0000 (08:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@739 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_loadable_module.c

index 143c3f8687da41bb1d4c49a6823dcc4e71b3af9f..f1e15a4b113e7e50c4f99555bac3c894cce2122e 100644 (file)
@@ -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);
                }
        }