From 788b1426527e3f738f43b23b33b2f09f994560ba Mon Sep 17 00:00:00 2001 From: zacheiss Date: Sun, 15 Feb 2004 01:54:58 +0000 Subject: [PATCH] Remove code that prevents trimming trailing whitespace from strings we consider to be binary. --- server/mr_util.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/server/mr_util.c b/server/mr_util.c index 8320877d..8ca04ff3 100644 --- a/server/mr_util.c +++ b/server/mr_util.c @@ -102,8 +102,7 @@ void mr_com_err(const char *whoami, long code, const char *fmt, va_list pvar) /* mr_trim_args: passed an argument vector, it will trim any trailing - * spaces on the args by writing a null into the string. If an argument - * appears to be binary instead of ASCII, it will not be trimmed. + * spaces on the args by writing a null into the string. */ int mr_trim_args(int argc, char **argv) @@ -115,16 +114,6 @@ int mr_trim_args(int argc, char **argv) { for (lastch = p = (unsigned char *) *arg; *p; p++) { - /* If any byte in the string has the high bit set, assume - * that it is binary and we do not want to trim it. - * Setting p = lastch will cause us not to trim the string - * when we break out of this inner loop. - */ - if (*p >= 0x80) - { - p = lastch; - break; - } if (!isspace(*p)) lastch = p; } -- 2.45.2