[sword-svn] r2600 - trunk/src/modules/comments/rawfiles

scribe at crosswire.org scribe at crosswire.org
Fri Feb 11 22:23:59 MST 2011


Author: scribe
Date: 2011-02-11 22:23:59 -0700 (Fri, 11 Feb 2011)
New Revision: 2600

Modified:
   trunk/src/modules/comments/rawfiles/rawfiles.cpp
Log:
Fixed a bug in return value which should be have longer live than stack.


Modified: trunk/src/modules/comments/rawfiles/rawfiles.cpp
===================================================================
--- trunk/src/modules/comments/rawfiles/rawfiles.cpp	2011-02-12 05:11:09 UTC (rev 2599)
+++ trunk/src/modules/comments/rawfiles/rawfiles.cpp	2011-02-12 05:23:59 UTC (rev 2600)
@@ -184,7 +184,7 @@
  */
 
 const char *RawFiles::getNextFilename() {
-	SWBuf incfile;
+	static SWBuf incfile;
 	__u32 number = 0;
 	FileDesc *datafile;
 




More information about the sword-cvs mailing list