summaryrefslogtreecommitdiff
path: root/plugins/converter/convgui.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/converter/convgui.c')
-rw-r--r--plugins/converter/convgui.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/converter/convgui.c b/plugins/converter/convgui.c
index d229c811..ad7fa4c4 100644
--- a/plugins/converter/convgui.c
+++ b/plugins/converter/convgui.c
@@ -144,6 +144,10 @@ converter_worker (void *ctx) {
char *r = root;
while (*path && *r) {
if (*path != *r) {
+ // find new separator
+ while (r > root && *r != '/') {
+ r--;
+ }
*r = 0;
rootlen = r-root;
break;
@@ -153,7 +157,7 @@ converter_worker (void *ctx) {
}
}
}
-// fprintf (stderr, "common root path: %s\n", root);
+ fprintf (stderr, "common root path: %s\n", root);
}
for (int n = 0; n < conv->convert_items_count; n++) {