"Secure coding" audit checkers and Kerberos

Luke Howard lukeh at padl.com
Tue Oct 14 22:30:28 EDT 2008

> Likewise, there's a public domain version of snprintf that I've been  
> using
> for some time for systems that either don't have snprintf (rare these
> days) or that have a buggy / pre-C99 version (all versions of Solaris
> prior to 9).

So, did Sun change the return value in Solaris 9?

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.

-- Luke

More information about the krbdev mailing list