On Sun, Feb 22, 2015 at 11:33:16PM +0100, René Scharfe wrote:
> Am 22.02.2015 um 21:00 schrieb Junio C Hamano:
> >René Scharfe writes:
> >
> >>Use strlcpy() instead of calling strncpy() and then setting the last
> >>byte of the target buffer to NUL explicitly. This shortens and
> >>simplifies th
Am 22.02.2015 um 21:00 schrieb Junio C Hamano:
René Scharfe writes:
Use strlcpy() instead of calling strncpy() and then setting the last
byte of the target buffer to NUL explicitly. This shortens and
simplifies the code a bit.
Thanks. It makes me wonder if the longer term direction should
René Scharfe writes:
> Use strlcpy() instead of calling strncpy() and then setting the last
> byte of the target buffer to NUL explicitly. This shortens and
> simplifies the code a bit.
Thanks. It makes me wonder if the longer term direction should be
not to use a bound buffer for oc->path, th
Use strlcpy() instead of calling strncpy() and then setting the last
byte of the target buffer to NUL explicitly. This shortens and
simplifies the code a bit.
Signed-of-by: Rene Scharfe
---
sha1_name.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/sha1_name.c b/sha
4 matches
Mail list logo