$OpenBSD: patch-libclamav_str_c,v 1.6 2009/04/11 14:13:59 sthen Exp $ --- libclamav/str.c.orig Mon Mar 16 18:37:27 2009 +++ libclamav/str.c Tue Mar 24 00:43:32 2009 @@ -166,9 +166,9 @@ int cli_hex2str_to(const char *hex, unsigned char *ptr for(i = 0; i < len; i += 2) { if((c = cli_hex2int(hex[i])) >= 0) { - val = c; + val = (char)c; if((c = cli_hex2int(hex[i+1])) >= 0) { - val = (val << 4) + c; + val = (val << 4) + (char)c; } else { return -1; }