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 l@web.de 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
Am 22.02.2015 um 21:00 schrieb Junio C Hamano:
René Scharfe l@web.de 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
René Scharfe l@web.de 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
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 l@web.de
---
sha1_name.c | 8 ++--
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git
4 matches
Mail list logo