diff --git a/src/mgr/curlhttpt.cpp b/src/mgr/curlhttpt.cpp index ad78e8d..cbebdb7 100644 --- a/src/mgr/curlhttpt.cpp +++ b/src/mgr/curlhttpt.cpp @@ -215,6 +215,7 @@ vector CURLHTTPTransport::getDirList(const char *dirURL) { if (!getURL("", dirURL, &dirBuf)) { pBuf = strstr(dirBuf, " CURLHTTPTransport::getDirList(const char *dirURL) { fSize *= 1024; else if (pBufRes[0] == 'M') fSize *= 1048576; + pBuf = pBufRes; } struct DirEntry i; i.name = possibleName; i.size = (long unsigned int)fSize; i.isDirectory = (possibleName[possibleNameLength-1] == '/'); dirList.push_back(i); - pBuf = pBufRes; } else { pBuf += possibleNameLength; }