From: Christian P. <cp...@us...> - 2005-06-29 00:07:53
|
Update of /cvsroot/pclasses/pclasses2/src/Unicode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31455/src/Unicode Modified Files: String.cpp Log Message: - Fixed a small bug in substring ctor of String Index: String.cpp =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/Unicode/String.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- String.cpp 22 Jun 2005 11:33:18 -0000 1.11 +++ String.cpp 29 Jun 2005 00:07:44 -0000 1.12 @@ -74,7 +74,7 @@ if(str._data.null()) return; - if(count == npos) + if(count == npos || count > str.size() - offset) count = str.size() - offset; _data = alloc(count * 2); |