* methods/gzip.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Sat, 30 Sep 2006 14:30:42 +0000 (16:30 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Sat, 30 Sep 2006 14:30:42 +0000 (16:30 +0200)
  - fix invalid reanem

methods/gzip.cc

index a8e816b..f732c0b 100644 (file)
@@ -55,7 +55,7 @@ bool GzipMethod::Fetch(FetchItem *Itm)
    // if the file is empty, just rename it and return
    if(From.Size() == 0) 
    {
-      Rename(Path, Itm->DestFile);
+      rename(Path.c_str(), Itm->DestFile.c_str());
       return true;
    }