Revision 04d70dd64837a088f1e95286e328801085631e82 authored by Junio C Hamano on 21 November 2018, 13:57:53 UTC, committed by Junio C Hamano on 21 November 2018, 13:57:53 UTC
Developer aid. * tg/conflict-marker-size: .gitattributes: add conflict-marker-size for relevant files
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 ...