[sword-svn] r1875 - trunk/utilities
mgruner at crosswire.org
mgruner at crosswire.org
Thu Dec 22 03:08:31 MST 2005
Author: mgruner
Date: 2005-12-22 03:08:23 -0700 (Thu, 22 Dec 2005)
New Revision: 1875
Modified:
trunk/utilities/osis2mod.cpp
Log:
osis2mod compresses correctly now, but ciphering still does not seem to work
more testing needed.
Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp 2005-12-21 23:14:00 UTC (rev 1874)
+++ trunk/utilities/osis2mod.cpp 2005-12-22 10:08:23 UTC (rev 1875)
@@ -409,8 +409,11 @@
module = new RawText(argv[1]); // open our datapath with our RawText driver.
}
+ SWFilter *cipherFilter;
+
if (!cipherKey.empty()){
- SWFilter *cipherFilter = new CipherFilter(cipherKey.c_str());
+ fprintf(stderr, "Adding cipher filter with phrase: %s\n", cipherKey.c_str() );
+ cipherFilter = new CipherFilter(cipherKey.c_str());
module->AddRawFilter(cipherFilter);
}
@@ -456,6 +459,8 @@
}
delete module;
delete currentVerse;
+ if (cipherFilter)
+ delete cipherFilter;
FileMgr::getSystemFileMgr()->close(fd);
}
More information about the sword-cvs
mailing list