about summary refs log tree commit diff
path: root/third_party/git/compat/strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/compat/strlcpy.c')
-rw-r--r--third_party/git/compat/strlcpy.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/third_party/git/compat/strlcpy.c b/third_party/git/compat/strlcpy.c
deleted file mode 100644
index 4024c360301e..000000000000
--- a/third_party/git/compat/strlcpy.c
+++ /dev/null
@@ -1,13 +0,0 @@
-#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;
-}