Merge pull request #267 from Jopie64/development

Fix compilation error in MSVC when compiling for c++
This commit is contained in:
Vicent Martí 2011-06-17 15:44:26 -07:00
commit deee4766a8

View File

@ -43,7 +43,7 @@ GIT_INLINE(char *) git__strndup(const char *str, size_t n)
if (n < length) if (n < length)
length = n; length = n;
ptr = malloc(length + 1); ptr = (char*)malloc(length + 1);
if (!ptr) if (!ptr)
git__throw(GIT_ENOMEM, "Out of memory. Failed to duplicate string"); git__throw(GIT_ENOMEM, "Out of memory. Failed to duplicate string");