[sword-devel] Sword Lib modifications
Will Thimbleby
sword-devel@crosswire.org
Tue, 6 May 2003 23:09:11 +0100
Hi,
I tracked down where I have a problem with the sword library. It is
when a RawStr is used to contain the path to the module, limiting the
length of the path to 127. Can I suggest an alteration of RawStr::RawStr
from (line 43 of rawstr.cpp):
RawStr::RawStr(const char *ipath, int fileMode)
{
char buf[127];
to:
RawStr::RawStr(const char *ipath, int fileMode)
{
char *buf = new char [strlen(ipath)+5];
This solve my problem that I had with extra long path names. Also if no
one minds I'd appreciate SWMgr::augment(const char *ipath) being made
public.
Cheers, Will