]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
char array index
authorMark Andrews <marka@isc.org>
Mon, 2 Apr 2001 09:42:20 +0000 (09:42 +0000)
committerMark Andrews <marka@isc.org>
Mon, 2 Apr 2001 09:42:20 +0000 (09:42 +0000)
lib/bind/dst/dst_api.c
lib/bind/nameser/ns_date.c
lib/bind/nameser/ns_name.c

index 954f8c5f76d730e63a6a1676c91d2c6ec8369369..3624988dd8003715ea41ffda6dabfb2de1991362 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef LINT
-static const char rcsid[] = "$Header: /u0/home/explorer/proj/ISC/git-conversion/cvsroot/bind9/lib/bind/dst/Attic/dst_api.c,v 1.1 2001/03/29 06:31:31 marka Exp $";
+static const char rcsid[] = "$Header: /u0/home/explorer/proj/ISC/git-conversion/cvsroot/bind9/lib/bind/dst/Attic/dst_api.c,v 1.2 2001/04/02 09:42:20 marka Exp $";
 #endif
 
 /*
@@ -557,7 +557,7 @@ dst_s_read_public_key(const char *in_name, const u_int16_t in_id, int in_alg)
        enckey[--len] = '\0';
 
        /* remove leading spaces */
-       for (notspace = (char *) enckey; isspace(*notspace); len--)
+       for (notspace = (char *) enckey; isspace((*notspace)&0xff); len--)
                notspace++;
 
        dlen = b64_pton(notspace, deckey, sizeof(deckey));
index 486f70abda921c27f36c4873acc223a7cc2a06bc..69b1717380cb628bf67f02e2c87df58e744271b1 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ns_date.c,v 1.1 2001/03/29 06:31:56 marka Exp $";
+static const char rcsid[] = "$Id: ns_date.c,v 1.2 2001/04/02 09:41:33 marka Exp $";
 #endif
 
 /* Import. */
@@ -116,7 +116,7 @@ datepart(const char *buf, int size, int min, int max, int *errp) {
        int i;
 
        for (i = 0; i < size; i++) {
-               if (!isdigit(buf[i]))
+               if (!isdigit(buf[i]&0xff))
                        *errp = 1;
                result = (result * 10) + buf[i] - '0';
        }
index 1bed101870e5dee9c36494f2a5617ce7be16395b..1ff1d9d59ccb1b9afa3045188cabc36b0c1bfbad 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
-static const char rcsid[] = "$Id: ns_name.c,v 1.1 2001/03/29 06:31:56 marka Exp $";
+static const char rcsid[] = "$Id: ns_name.c,v 1.2 2001/04/02 09:40:56 marka Exp $";
 #endif
 
 #include "port_before.h"
@@ -848,7 +848,7 @@ encode_bitsring(const char **bp, const char *end, char **labelp,
                        break;
                default:
                        if (afterslash) {
-                               if (!isdigit(c))
+                               if (!isdigit(c&0xff))
                                        return(EINVAL);
                                if (beg_blen == NULL) {
                                        
@@ -859,7 +859,7 @@ encode_bitsring(const char **bp, const char *end, char **labelp,
                                        beg_blen = cp;
                                }
                        } else {
-                               if (!isxdigit(c))
+                               if (!isxdigit(c&0xff))
                                        return(EINVAL);
                                value <<= 4;
                                value += digitvalue[(int)c];