X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Ffs-sink%2Fwrite.c;h=4b6f6e9ac2e28553afee26b8d4961ad648ba13c6;hb=3743a302979551dd5a384ab29144a8a0f237e091;hp=519eb2cb1654560be0785c37b54f3f66df3bc8c2;hpb=1cd3decc938dccecb88719fa6bb6d7fc8329ecee;p=babeltrace.git diff --git a/plugins/ctf/fs-sink/write.c b/plugins/ctf/fs-sink/write.c index 519eb2cb..4b6f6e9a 100644 --- a/plugins/ctf/fs-sink/write.c +++ b/plugins/ctf/fs-sink/write.c @@ -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);