| author | David Anderson <dvander@alliedmods.net> |
| Fri Oct 21 09:14:42 2005 +0000 (2005-10-21) | |
| changeset 143 | f6be29c3cdb2 |
| parent 142 | 40e1fc972412 |
| child 144 | 5a55e016581d |
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;