Revision cdc0c0f52075e67be432807add1879a0799df583 authored by Junio C Hamano on 08 November 2013, 20:01:58 UTC, committed by Junio C Hamano on 08 November 2013, 20:01:58 UTC
The interaction between use of Perl in our test suite and NO_PERL has been clarified a bit. * jn/test-prereq-perl-doc: t/README: tests can use perl even with NO_PERL
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;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...