Port: replace literal '/' with G_DIR_SEPARATOR
[babeltrace.git] / plugins / ctf / fs-sink / write.c
index 519eb2cb1654560be0785c37b54f3f66df3bc8c2..4b6f6e9ac2e28553afee26b8d4961ad648ba13c6 100644 (file)
@@ -248,7 +248,7 @@ int make_trace_path(struct writer_component *writer_component,
 
        }
 
-       snprintf(trace_path, PATH_MAX, "%s/%s",
+       snprintf(trace_path, PATH_MAX, "%s" G_DIR_SEPARATOR_S "%s",
                        writer_component->base_path->str,
                        trace_name);
        /*
@@ -265,7 +265,7 @@ int make_trace_path(struct writer_component *writer_component,
                        int i = 0;
 
                        do {
-                               snprintf(trace_path, PATH_MAX, "%s/%s-%d",
+                               snprintf(trace_path, PATH_MAX, "%s" G_DIR_SEPARATOR_S "%s-%d",
                                                writer_component->base_path->str,
                                                trace_name, ++i);
                        } while (g_file_test(trace_path, G_FILE_TEST_EXISTS) && i < INT_MAX);
This page took 0.025684 seconds and 4 git commands to generate.