Commit f0619886 by Johan 't Hart

Fix compilation error in MSVC when compiling for c++

parent c716b187
...@@ -43,7 +43,7 @@ GIT_INLINE(char *) git__strndup(const char *str, size_t n) ...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment