[sword-cvs] sword/src/mgr swmgr.cpp,1.88,1.89
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 9 Jun 2003 00:13:48 -0700
Update of /usr/local/cvsroot/sword/src/mgr
In directory www:/tmp/cvs-serv931/src/mgr
Modified Files:
swmgr.cpp
Log Message:
fixed ./ in AbsoluteDataPath; fixes to utilweb.cpp
Index: swmgr.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/mgr/swmgr.cpp,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** swmgr.cpp 30 Apr 2003 08:18:45 -0000 1.88
--- swmgr.cpp 9 Jun 2003 07:13:46 -0000 1.89
***************
*** 690,693 ****
--- 690,696 ----
// for (; ((*buf2) && ((*buf2 == '.') || (*buf2 == '/') || (*buf2 == '\\'))); buf2++);
for (; ((*buf2) && ((*buf2 == '/') || (*buf2 == '\\'))); buf2++);
+ if (!strncmp(buf2, "./", 2)) { //remove the leading ./ in the module data path to make it look better
+ buf2 += 2;
+ }
if (*buf2)
datapath += buf2;