Re: bin/ln & WARNS=5
Dag-Erling Smorgrav <[email protected]> 15 Jul 2002 13:12:26 +0200
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
Bruce Evans <[email protected]> writes: > That would break the possibly-intentional check for snprintf() failing. > (size_t)-1 >= sizeof(path), but !(-1 >= (int)sizeof(path)). Casting a value which one knows may be negative to an unsigned type is IMHO stupid. If the check is intentional, it should be done explicitly. DES -- Dag-Erling Smorgrav - [email protected] To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-audit" in the body of the message