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 | 4bc4a97e36121fe884acb57957d9f41813d9bb3a (patch) | |
tree | 9106722a780c8d0919eb2310b5d4dadf1a99b574 | |
parent | 8e004fe00d2ff0faea35025de895dc72531981d9 (diff) | |
download | samba-4bc4a97e36121fe884acb57957d9f41813d9bb3a.tar.gz samba-4bc4a97e36121fe884acb57957d9f41813d9bb3a.tar.bz2 samba-4bc4a97e36121fe884acb57957d9f41813d9bb3a.zip |
Fixed off-by-one in all_string_sub also.
Jeremy.
(This used to be commit 8b0e47fc1f00c76dfccb6c2b58188d9a5ae67c65)
-rw-r--r-- | source3/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index be96718205..c1d20ffd2c 100644 --- a/source3/lib/util_str.c +++ b/source3/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)); |