"Secure coding" audit checkers and Kerberos
Luke Howard
lukeh at padl.com
Tue Oct 14 23:11:12 EDT 2008
>> snprintf() first appeared on Solaris 2.6 but its behaviour differs to
>> most other platforms, in that it returns the number of bytes that
>> would
>> have been written regardless of buffer size.
>
> I think you accidentally got that backwards. That's the behavior
> everywhere else, and is required by C99, but Solaris returned -1
> instead.
My bad, sorry!
-- Luke
More information about the krbdev
mailing list