From 91febc38e32bd2f519d3254503f41b1e6014776c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 10 May 2001 23:55:33 +0000 Subject: Needs to be >=, not just >. Jeremy. (This used to be commit fa6a5bf94a3716c0554e2bcbe0eb4b0912f15604) --- source3/lib/util_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib') 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; -- cgit