summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;