mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 12:13:18 +00:00
Fix compilation error in MSVC when compiling for c++
This commit is contained in:
parent
c716b1878e
commit
f061988667
@ -43,7 +43,7 @@ GIT_INLINE(char *) git__strndup(const char *str, size_t n)
|
||||
if (n < length)
|
||||
length = n;
|
||||
|
||||
ptr = malloc(length + 1);
|
||||
ptr = (char*)malloc(length + 1);
|
||||
if (!ptr)
|
||||
git__throw(GIT_ENOMEM, "Out of memory. Failed to duplicate string");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user