Revision a56a7777bdf7a812fafb45663db26c5f4d988e52 authored by Junio C Hamano on 09 July 2019, 22:25:39 UTC, committed by Junio C Hamano on 09 July 2019, 22:25:39 UTC
Typofix.

* js/t3404-typofix:
  t3404: fix a typo
2 parent s 0af6d5d + cc8d872
Raw File
strdup.c
#include "../git-compat-util.h"

char *gitstrdup(const char *s1)
{
	size_t len = strlen(s1) + 1;
	char *s2 = malloc(len);

	if (s2)
		memcpy(s2, s1, len);
	return s2;
}
back to top