-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
If you call isxxx() with a signed char then the result is undefined. In particular the function is often defines as (__ctype[1 + arg] & BIT_PATTERN) so a negative value in a signed char will index off the front of the array as look in an incorrect place for the bit-pattern. It might even core dump.
updated, along with other fixes / improvements. Thanks a lot for this clear explaination :)
- ------------------------- iMil <imil%home.imil.net@localhost> _ http://gcu-squad.org ASCII ribbon campaign ( ) - against HTML email X & vCards / \ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (NetBSD) iD8DBQFCGwN2FG3BlGWyzUIRArF7AJ95o4SJfPUczrEmbksz6hmrzlrr7gCeN/7k U6O5EC3QYW2SEWpg2lVbzYI= =HXuE -----END PGP SIGNATURE----- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ pkgsrc-wip-review mailing list pkgsrc-wip-review%lists.sourceforge.net@localhost https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-review