summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-05-10 23:55:33 +0000
committerJeremy Allison <jra@samba.org>2001-05-10 23:55:33 +0000
commit91febc38e32bd2f519d3254503f41b1e6014776c (patch)
tree1b0e994e484d9aaf4f91d3bbb6fee07b06a7b488
parente0f5d84e9d4c7eb396d48117ebb1b116e19e0700 (diff)
downloadsamba-91febc38e32bd2f519d3254503f41b1e6014776c.tar.gz
samba-91febc38e32bd2f519d3254503f41b1e6014776c.tar.bz2
samba-91febc38e32bd2f519d3254503f41b1e6014776c.zip
Needs to be >=, not just >.
Jeremy. (This used to be commit fa6a5bf94a3716c0554e2bcbe0eb4b0912f15604)
-rw-r--r--source3/lib/util_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index 78366fceb7..0f32fda63c 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -591,7 +591,7 @@ BOOL trim_string(char *s,const char *front,const char *back)
* Kenichi Okuyama.
*/
- if ( back && back_len > 1 && s_len > back_len) {
+ if ( back && back_len > 1 && s_len >= back_len) {
char *bP = sP + s_len - back_len;
long b_len = s_len;