[sword-cvs] sword/src/utilfuns utilweb.cpp,1.4,1.5
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 9 Jun 2003 00:13:48 -0700
Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv931/src/utilfuns
Modified Files:
utilweb.cpp
Log Message:
fixed ./ in AbsoluteDataPath; fixes to utilweb.cpp
Index: utilweb.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilweb.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** utilweb.cpp 7 Jun 2003 01:55:38 -0000 1.4
--- utilweb.cpp 9 Jun 2003 07:13:46 -0000 1.5
***************
*** 26,31 ****
string buf;
! for (int i = 0; i <= url.length(); i++) { //fill "buf"
! const char c = url[i];
buf += m[c].empty() ? string(1,c) : m[c];
}
--- 26,32 ----
string buf;
! const int length = url.length();
! for (int i = 0; i <= length; i++) { //fill "buf"
! const char& c = url[i];
buf += m[c].empty() ? string(1,c) : m[c];
}