]> andersk Git - moira.git/commitdiff
Remove code that prevents trimming trailing whitespace from strings we consider to...
authorzacheiss <zacheiss>
Sun, 15 Feb 2004 01:54:58 +0000 (01:54 +0000)
committerzacheiss <zacheiss>
Sun, 15 Feb 2004 01:54:58 +0000 (01:54 +0000)
server/mr_util.c

index 8320877d640ae4b5b54f1c2932130dc090451234..8ca04ff35f3dd4baabf95ff77fc50764cb4d9b04 100644 (file)
@@ -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;
        }
This page took 0.742166 seconds and 5 git commands to generate.