From c3a0f677fbc78859de0d3e4b61b694c151b23ef1 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 17 Jan 2012 16:09:55 +0100 Subject: [PATCH] fix signedness of hashfunc --- src/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index bb1488c..17cc66d 100644 --- a/src/core.c +++ b/src/core.c @@ -48,7 +48,8 @@ extern int proxychains_quiet_mode; internal_ip_lookup_table internal_ips = {0, 0, NULL}; -uint32_t dalias_hash(char* s) { +uint32_t dalias_hash(char* s0) { + unsigned char* s = (void*) s0; uint_fast32_t h = 0; while (*s) { h = 16*h + *s++;