[OpenAFS-devel] Re: sprintf -> snprintf...

Jim Rees rees@umich.edu
Fri, 27 Jun 2003 12:42:37 -0400


On a related topic, I just put strlcpy and strlcat into libutil.  I think
these are standard enough not to have the problems Lindsay describes for
snprintf, so I use them if autoconf decides they're needed, otherwise the
system ones are used.

I have not converted any code to use this yet.  I also have not done a
kernel version, but I think user space is more important to prevent
stack-smashing attacks against afs services.