Explorar o código

* methods/gzip.cc:
- fix invalid reanem

Michael Vogt %!s(int64=20) %!d(string=hai) anos
pai
achega
60a9e37531
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      methods/gzip.cc

+ 1 - 1
methods/gzip.cc

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