Commit a49e5bed by Patrick Pokatilo

Replace call to strnlen with call to strlen

parent f88885e3
......@@ -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;
......
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