95b3f55f50
ok mbalmer (maintainer)
16 lines
478 B
Plaintext
16 lines
478 B
Plaintext
$OpenBSD: patch-libclamav_str_c,v 1.5 2008/11/07 22:33:06 sthen Exp $
|
|
--- libclamav/str.c.orig Thu Oct 16 09:29:55 2008
|
|
+++ libclamav/str.c Fri Nov 7 02:29:18 2008
|
|
@@ -152,9 +152,9 @@ char *cli_hex2str(const char *hex)
|
|
|
|
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 {
|
|
free(str);
|
|
return NULL;
|