correct utf16le check

git-svn: trunk@3353
remotes/push_mirror/metadata
aCaB 18 years ago
parent ac8154d9d7
commit f1b4700daf
  1. 3
      libclamav/autoit.c

@ -60,7 +60,7 @@ static unsigned int u2a(uint8_t *dest, unsigned int len) {
for (i=0; i<j; i+=2) for (i=0; i<j; i+=2)
cnt+=(src[i]!=0 && src[i+1]==0); cnt+=(src[i]!=0 && src[i+1]==0);
if (cnt*2 < j) if (cnt*4 < j)
return len; return len;
} }
@ -72,6 +72,7 @@ static unsigned int u2a(uint8_t *dest, unsigned int len) {
return len; return len;
} }
/********************* /*********************
MT realted stuff MT realted stuff
*********************/ *********************/

Loading…
Cancel
Save