4264. [bug] Check const of strchr/strrchr assignments match

argument's const status. [RT #41150]
This commit is contained in:
Mark Andrews
2015-11-20 18:38:24 +11:00
parent 913d976eca
commit 5b1c7ef35b
22 changed files with 74 additions and 66 deletions

View File

@@ -56,14 +56,14 @@
#include <isc/string.h>
#include <isc/util.h>
static char digits[] = "0123456789abcdefghijklmnoprstuvwxyz";
static const char digits[] = "0123456789abcdefghijklmnoprstuvwxyz";
isc_uint64_t
isc_string_touint64(char *source, char **end, int base) {
isc_uint64_t tmp;
isc_uint64_t overflow;
char *s = source;
char *o;
const char *o;
char c;
if ((base < 0) || (base == 1) || (base > 36)) {