[sword-svn] r3214 - trunk/utilities
scribe at crosswire.org
scribe at crosswire.org
Wed Apr 30 22:12:56 MST 2014
Author: scribe
Date: 2014-04-30 22:12:56 -0700 (Wed, 30 Apr 2014)
New Revision: 3214
Modified:
trunk/utilities/imp2ld.cpp
Log:
fix1
Modified: trunk/utilities/imp2ld.cpp
===================================================================
--- trunk/utilities/imp2ld.cpp 2014-05-01 05:12:42 UTC (rev 3213)
+++ trunk/utilities/imp2ld.cpp 2014-05-01 05:12:56 UTC (rev 3214)
@@ -231,6 +231,7 @@
SWLD::strongsPad(buf);
if(strcmp(buf, *key))
std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
+ delete buf;
}
mod->setEntry(entbuffer.c_str(), entbuffer.size());
@@ -261,13 +262,15 @@
std::cout << keybuffer << std::endl;
*key = keybuffer.c_str();
- if(paddingCheck) {
- char *buf = new char [ strlen(*key) + 6 ];
- strcpy(buf, *key);
- SWLD::strongsPad(buf);
- if(strcmp(buf, *key))
- std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
- }
+ if(paddingCheck) {
+ char *buf = new char [ strlen(*key) + 6 ];
+ strcpy(buf, *key);
+ SWLD::strongsPad(buf);
+ if(strcmp(buf, *key))
+ std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
+ delete buf;
+ }
+
mod->setEntry(entbuffer.c_str(), entbuffer.size());
for (i = 0; i < links; i++) {
std::cout << "Linking: " << linkbuffer[i] << std::endl;
More information about the sword-cvs
mailing list