From: <ust...@us...> - 2008-08-18 16:54:24
|
Revision: 2871 http://clucene.svn.sourceforge.net/clucene/?rev=2871&view=rev Author: ustramooner Date: 2008-08-18 16:54:13 +0000 (Mon, 18 Aug 2008) Log Message: ----------- removed unused code pointed out by Rustem Alimov Modified Paths: -------------- branches/lucene2_3_2/src/core/CLucene/index/IndexReader.cpp Modified: branches/lucene2_3_2/src/core/CLucene/index/IndexReader.cpp =================================================================== --- branches/lucene2_3_2/src/core/CLucene/index/IndexReader.cpp 2008-08-18 16:52:18 UTC (rev 2870) +++ branches/lucene2_3_2/src/core/CLucene/index/IndexReader.cpp 2008-08-18 16:54:13 UTC (rev 2871) @@ -553,13 +553,6 @@ CND_PRECONDITION(directory != NULL, "directory is NULL"); - //Create a buffer of length CL_MAXDIR - char f[CL_MAX_PATH]; //todo: potential buffer overflow - //Copy the directory string to the buffer. leave room for /write.lock - strncpy(f,directory,CL_MAX_PATH-12); - //Cat the name of the write.lock file to buffer - strcat ( f,"/write.lock" ); - Directory* dir = FSDirectory::getDirectory(directory,false); bool ret = isLocked(dir); dir->close(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |