diff options
author | Jeremy Allison <jra@samba.org> | 2002-07-18 23:22:11 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-07-18 23:22:11 +0000 |
commit | 8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65 (patch) | |
tree | eb5163cc0952ca1c7115a2e224083869b8d7e1b6 | |
parent | 4aa922a1afdd538f51d5eff4cb7af2694a88c591 (diff) | |
download | samba-8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65.tar.gz samba-8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65.tar.xz samba-8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65.zip |
Fixed off-by-one in all_string_sub also.
Jeremy.
-rw-r--r-- | source/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_str.c b/source/lib/util_str.c index be967182053..c1d20ffd2c0 100644 --- a/source/lib/util_str.c +++ b/source/lib/util_str.c @@ -801,7 +801,7 @@ void all_string_sub(char *s,const char *pattern,const char *insert, size_t len) len = ls; while (lp <= ls && (p = strstr(s,pattern))) { - if (ls + (li-lp) >= len) { + if (ls + (li-lp) > len) { DEBUG(0,("ERROR: string overflow by %d in all_string_sub(%.50s, %d)\n", (int)(ls + (li-lp) - len), pattern, (int)len)); |