[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: using "(void)" casts to purposefully ignore return values
On Wed, Aug 24, 2011 at 04:11:52PM +0200, Joerg Sonnenberger wrote:
> > Nope, someone has not read the strlcat man page closely enough. If you
> > screw up in just the right way strlcat WILL NOT null terminate a string.
> You are mixing up strncat and strlcat. The former doesn't NUL-terminate,
> the latter does explicitly in all but one case (n==0).
I repeat. Someone has not read the strlcat man page properly.
Seriously. The belief that strlcat will always nul terminate is wrong.
The information contained in this email and any attached files is
confidential to BAE Systems Australia. If you are not the intended
recipient, any use, disclosure or copying of this email or any
attachments is expressly prohibited. If you have received this email
in error, please notify us immediately. VIRUS: Every care has been
taken to ensure this email and its attachments are virus free,
however, any loss or damage incurred in using this email is not the
sender's responsibility. It is your responsibility to ensure virus
checks are completed before installing any data sent in this email to
Main Index |
Thread Index |