Incorrect return types for snprintf() and vsnprintf()

Richard Kettlewell rjk at terraraq.org.uk
Sat Oct 20 00:44:37 EST 2001


"s c o t t" <spaceacademy at hotmail.com> writes:

> Both of these functions are using strlen() to create return value.

This patch would make the -compat versions incompatible with the
standard versions of [v]snprintf, which return int (and in particular,
return -1 to signal certain errors).

ttfn/rjk
-- 
http://www.greenend.org.uk/rjk/



More information about the openssh-unix-dev mailing list