Author: rfm
Date: Thu Jan 21 20:27:28 2016
New Revision: 39301

URL: http://svn.gna.org/viewcvs/gnustep?rev=39301&view=rev
Log:
fixup a few errors in last mod

Modified:
    libs/base/trunk/Source/Additions/GSMime.m

Modified: libs/base/trunk/Source/Additions/GSMime.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/Additions/GSMime.m?rev=39301&r1=39300&r2=39301&view=diff
==============================================================================
--- libs/base/trunk/Source/Additions/GSMime.m   (original)
+++ libs/base/trunk/Source/Additions/GSMime.m   Thu Jan 21 20:27:28 2016
@@ -2832,7 +2832,7 @@
       return 0;
     }
 
-  while (src < end && isWSP(*src))
+  while (src < end && isspace(*src))
     {
       if (*src == '\r' || *src == '\n')
        {
@@ -2975,7 +2975,7 @@
 
              src += 2;
              tmp = src;
-             while (tmp < end && *tmp != '?' && !isWSP(*tmp))
+             while (tmp < end && *tmp != '?' && !isspace(*tmp))
                {
                  tmp++;
                }
@@ -2995,12 +2995,12 @@
 
              src = tmp + 1;
              if (src >= end) return nil;
-             c = toupper(*src);
-             if (c == 'B')
+             c = tolower(*src);
+             if (c == 'b')
                {
                  encoding = WE_BASE64;
                }
-             else if (c == 'Q')
+             else if (c == 'q')
                {
                  encoding = WE_QUOTED;
                }
@@ -3019,7 +3019,7 @@
              src++;
              if (src >= end) return nil;
              tmp = src;
-             while (tmp < end && *tmp != '?' && !isWSP(*tmp))
+             while (tmp < end && *tmp != '?' && !isspace(*tmp))
                {
                  tmp++;
                }
@@ -3138,7 +3138,7 @@
        }
       else if (1 == flags.encodedWord)
         {
-          if (isWSP(src[0]))
+          if (isspace(src[0]))
             {
               expect++;                 // Count expected space after word
             }
@@ -3819,7 +3819,7 @@
           /* If we already have space at the end of the line,
            * we remove it because the wrapping counts as a space.
            */
-          if (len > 0 && isWSP(((const uint8_t *)[m bytes])[len - 1]))
+          if (len > 0 && isspace(((const uint8_t *)[m bytes])[len - 1]))
             {
               [m setLength: --len];
             }
@@ -3828,7 +3828,7 @@
            */
           [m appendBytes: "\r\n\t" length: 3];
           offset = 8;
-          if (size > 0 && isWSP(bytes[0]))
+          if (size > 0 && isspace(bytes[0]))
             {
               /* The folding counts as a space character,
                * so we refrain from writing the next character


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to