Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: basesrc/lib/libc
> > (there are bunch of "strcpy is safe" comments, i think we should change them
> > to strlcpy as much as possible)
>If the strcpy() is safe, then what is the point of using another (slower)
>routine?
strcpy() might have been safe when the comment is added, but we're not
sure with changes after the addition of comments. by using strlcpy
we can ensure that the operation is bounded.
(and we will make a function call anyways, so the speed does not
really matter i believe)
itojun
Home |
Main Index |
Thread Index |
Old Index