From 607aa9280a9451656259eff0debe2c43862e9ddc Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 10 May 2001 23:55:30 +0000 Subject: Needs to be >=, not just >. Jeremy. --- source/lib/util_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/util_str.c b/source/lib/util_str.c index 1ff593198d4..50c6605d5c3 100644 --- a/source/lib/util_str.c +++ b/source/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