[OpenAFS] sprintf -> snprintf...

Russ Allbery rra@stanford.edu
Thu, 26 Jun 2003 11:29:42 -0700


Jim Rees <rees@umich.edu> writes:

> I've got strlcpy and strlcat ready to go, but I need to figure out how
> to detect whether they're needed.  For the kernel that's hard.  For user
> space, I think it's a matter of adding them to AC_CHECK_FUNCS and
> putting in the appropriate #ifdefs.  I'll try to do that tomorrow.

I used AC_REPLACE_FUNCS, but yeah, same idea.  I've never met a strlcpy
that didn't work the way I expected, so it's simpler than snprintf.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>