-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

alex wrote:
> Dears all:
> 
> I have read the source code of clamav 0.90 and found a strange code in 
> filetype.c.
> 
> There is an expressioniIn 233 line of filetype.c : 
> 
>               if(!iscntrl(buf[i]) && !isprint(buf[i]) && !internat[buf[i] & 
> 0xff])
> 
> and this expression would ALWAYS be false.
> 
> I want to know if i am wrong ?
> 
> Thanks
> 
I've noticed it too, in my port I have changed it to:

if(!(iscntrl(buf[i]) || isprint(buf[i])) || !internat[buf[i] & xff])

- --
Gianluigi Tiesi <[EMAIL PROTECTED]>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5VTM3UE5cRfnO04RAixnAJ9eXEcZx++sjAJntr7x50PgGctq+QCgi08N
IQvtDLzWO9Go0P/lNHEdNGw=
=KPVx
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

Reply via email to