OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var.c versions 1.8 and 1.9
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var.c 1.8 -> 1.9

--- var.c        2001/11/13 14:42:57     1.8
+++ var.c        2001/11/13 14:56:05     1.9
@@ -351,7 +351,7 @@
             case '7':
             case '8':
             case '9':
-                if (end - src >= 3 && isdigit(src[1]) && isdigit(src[2])) {
+                if (end - src >= 3 && isdigit((int)src[1]) && isdigit((int)src[2])) {
                     if ((rc = expand_octal(&src, &dst, end)) != 0)
                         return rc;
                     break;
@@ -403,7 +403,7 @@
 static int number(const char *begin, const char *end)
 {
     const char *p;
-    for (p = begin; p != end && isdigit(*p); ++p);
+    for (p = begin; p != end && isdigit((int)*p); ++p);
     return p - begin;
 }
 
@@ -896,7 +896,7 @@
                 ++p;
                 continue;
             }
-            if (!isdigit(*p)) {
+            if (!isdigit((int)*p)) {
                 free_tokenbuf(expanded);
                 return VAR_UNKNOWN_QUOTED_PAIR_IN_REPLACE;
             }

CVSTrac 2.0.1