Made remote paths deconstructible
[doldaconnect.git] / clients / gnome-trans-applet / conduit-dclib.c
index c267db2..6ce3f82 100644 (file)
@@ -84,8 +84,7 @@ static char *gettag(struct dc_transfer *dt)
        return(NULL);
     if((mbspath = icwcstombs(dt->path, "UTF-8")) == NULL)
        return(NULL);
-    /* XXX: Achtung! Too DC-specific! */
-    if((p = strrchr(mbspath, '\\')) == NULL)
+    if((p = strrchr(mbspath, '/')) == NULL)
        p = mbspath;
     else
        p++;
@@ -142,7 +141,7 @@ static void inittrans(struct conduit *conduit, struct dc_transfer *dt)
     dtd->conduit = conduit;
     dt->udata = dtd;
     dt->destroycb = dtfreecb;
-    dc_queuecmd(lstrargcb, dt, L"lstrarg", L"%%i", dt->id, NULL);
+    dc_queuecmd(lstrargcb, dt, L"lstrarg", L"%i", dt->id, NULL);
 }
 
 static void trlistcb(int resp, struct conduit *conduit)
@@ -312,7 +311,7 @@ static int cancel(struct conduit *conduit, struct transfer *transfer)
     {
        if(((dtd = dt->udata) != NULL) && (dtd->ct == transfer))
        {
-           dc_queuecmd(NULL, NULL, L"cancel", L"%%i", dt->id, NULL);
+           dc_queuecmd(NULL, NULL, L"cancel", L"%i", dt->id, NULL);
            return(0);
        }
     }