16 lines
490 B
Plaintext
16 lines
490 B
Plaintext
$OpenBSD: patch-libclamav_str_c,v 1.7 2010/04/01 13:18:54 sthen Exp $
|
|
--- libclamav/str.c.orig Mon Feb 22 13:33:42 2010
|
|
+++ libclamav/str.c Wed Mar 10 21:28:42 2010
|
|
@@ -166,9 +166,9 @@ int cli_hex2str_to(const char *hex, char *ptr, size_t
|
|
|
|
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;
|
|
}
|