소스 검색

2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Added missing prefix dir.
	* src/download_helper.cc
Tatsuhiro Tsujikawa 16 년 전
부모
커밋
90ca1be5fe
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 0
      ChangeLog
  2. 2 1
      src/download_helper.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-03-10  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Added missing prefix dir.
+	* src/download_helper.cc
+	
 2009-03-10  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Removed --direct-file-mapping option and CopyDiskAdaptor.

+ 2 - 1
src/download_helper.cc

@@ -132,7 +132,8 @@ createBtRequestGroup(const std::string& torrentFilePath,
     Util::createIndexPathMap(indexOutIn);
   for(std::map<size_t, std::string>::const_iterator i = indexPathMap.begin();
       i != indexPathMap.end(); ++i) {
-    btContext->setFilePathWithIndex((*i).first, (*i).second);
+    btContext->setFilePathWithIndex((*i).first,
+				    btContext->getDir()+"/"+(*i).second);
   }
   rg->setDownloadContext(btContext);
   btContext->setOwnerRequestGroup(rg.get());