OSSP CVS Repository

ossp - Check-in [784]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 784
Date: 2001-Aug-28 16:24:03 (local)
2001-Aug-28 14:24:03 (UTC)
User:thl
Branch:
Comment: isblank() not available on solaris8 - replaced by isspace()
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/msg.c      1.13 -> 1.14     3 inserted, 3 deleted

ossp-pkg/lmtp2nntp/msg.c 1.13 -> 1.14

--- msg.c        2001/08/28 11:31:22     1.13
+++ msg.c        2001/08/28 14:24:03     1.14
@@ -266,13 +266,13 @@
             for (o = 0; (cpRem[o] != ':') && (cpRem[o] != NUL); o++); /* offset name so at least one char of value remains in first line */
             o += 2; /* skip ": " */
             while ((strlen(cpRem) + (cpWrap == NULL ? 0 : strlen(WRAPUSING))) > WRAPAT) {
-                for (i = WRAPAT - 1 - (cpWrap == NULL ? 0 : strlen(WRAPUSING)); (i >= o) && !isblank(cpRem[i]); i--);
+                for (i = WRAPAT - 1 - (cpWrap == NULL ? 0 : strlen(WRAPUSING)); (i >= o) && !isspace(cpRem[i]); i--);
                 if (i < o)
                     i = WRAPAT - 1 - (cpWrap == NULL ? 0 : strlen(WRAPUSING) - 1); /* sorry, forced cut at non-blank */
                 cpCut = cpRem;
                 cpRem += i;
-                for (; (isblank(*cpRem) && (*cpRem != NUL)); cpRem++); /* skip next lines leading blanks */
-                for (; (i >= o) && isblank(cpCut[i-1]); i--); /* chop off this lines trailing blanks */
+                for (; (isspace(*cpRem) && (*cpRem != NUL)); cpRem++); /* skip next lines leading blanks */
+                for (; (i >= o) && isspace(cpCut[i-1]); i--); /* chop off this lines trailing blanks */
                 if (i >= o) { /* only keep line fragment if some non-blanks inside */
                     if (cpWrap == NULL) {
                         if ((cpWrap = (char *)malloc(i+strlen(WRAPUSING)+1)) == NULL)

CVSTrac 2.0.1