mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 06:52:19 +00:00
Replace call to strnlen with call to strlen
This commit is contained in:
parent
f88885e339
commit
a49e5bed8d
@ -12,7 +12,6 @@
|
||||
#include <io.h>
|
||||
#include <fcntl.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <string.h>
|
||||
|
||||
int p_unlink(const char *path)
|
||||
{
|
||||
@ -114,7 +113,7 @@ static int do_lstat(
|
||||
if (readlink_result == -1)
|
||||
return -1;
|
||||
|
||||
buf->st_size = strnlen(target, GIT_WIN_PATH);
|
||||
buf->st_size = strlen(target);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user