Staging
v0.8.1
v0.8.1
Revision 04509738b5779c33e59b93e4959b0ac19acab838 authored by Junio C Hamano on 29 December 2006, 10:25:04 UTC, committed by Junio C Hamano on 29 December 2006, 10:25:04 UTC
Not that this reveals anything new, but I did test_tick shell function in test-lib and found it rather cute and nice. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent eff7375
strlcpy.c
#include "../git-compat-util.h"
size_t gitstrlcpy(char *dest, const char *src, size_t size)
{
size_t ret = strlen(src);
if (size) {
size_t len = (ret >= size) ? size - 1 : ret;
memcpy(dest, src, len);
dest[len] = '\0';
}
return ret;
}
Computing file changes ...