]> granicus.if.org Git - php/commitdiff
char * => unsigned char *
authorSascha Schumann <sas@php.net>
Sun, 16 May 1999 11:32:51 +0000 (11:32 +0000)
committerSascha Schumann <sas@php.net>
Sun, 16 May 1999 11:32:51 +0000 (11:32 +0000)
ext/standard/string.c

index 455300e86112cafa5c70a312e58b5127d13b7e54..139911c72dfec8ebb60f9559fcd61ee8e436941f 100644 (file)
@@ -45,9 +45,9 @@
 
 static char hexconvtab[] = "0123456789abcdef";
 
-static char *php_bin2hex(const char *old, const size_t oldlen, size_t *newlen)
+static char *php_bin2hex(const unsigned char *old, const size_t oldlen, size_t *newlen)
 {
-       char *new = NULL;
+       unsigned char *new = NULL;
        int i, j;
 
        new = (char *) emalloc(oldlen * 2 * sizeof(char));