]> sjero.net Git - wget/blobdiff - src/cmpt.c
[svn] Applied Philipp Thomas's safe-ctype patch. Published in
[wget] / src / cmpt.c
index 439828ca570639f3b98c77680e17cf24a5ae628f..a07fdff13eae0c62f1fb947d7b6f3682b0406b9b 100644 (file)
@@ -26,7 +26,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #else
 # include <strings.h>
 #endif /* HAVE_STRING_H */
-#include <ctype.h>
 
 #include <sys/types.h>
 #ifdef HAVE_UNISTD_H
@@ -657,9 +656,9 @@ strptime_internal (buf, format, tm, decided)
     {
       /* A white space in the format string matches 0 more or white
         space in the input string.  */
-      if (isspace (*fmt))
+      if (ISSPACE (*fmt))
        {
-         while (isspace (*rp))
+         while (ISSPACE (*rp))
            ++rp;
          ++fmt;
          continue;
@@ -851,7 +850,7 @@ strptime_internal (buf, format, tm, decided)
        case 'n':
        case 't':
          /* Match any white space.  */
-         while (isspace (*rp))
+         while (ISSPACE (*rp))
            ++rp;
          break;
        case 'p':