| changeset 143 | f6be29c3cdb2 |
| parent 112 | 0260e74b4a5d |
| child 193 | 184b3f1559c0 |
1.1 --- a/sourcehook/sh_string.h Fri Oct 21 07:22:37 2005 +0000 1.2 +++ b/sourcehook/sh_string.h Fri Oct 21 09:14:42 2005 +0000 1.3 @@ -225,7 +225,7 @@ 1.4 unsigned int i = 0; 1.5 size_t len = size(); 1.6 //check for bounds 1.7 - if (num == npos || start+num > len-num+1) 1.8 + if (num == npos || start+num > len-start) 1.9 num = len - start; 1.10 //do the erasing 1.11 bool copyflag = false;