summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-12-07 15:01:20 +0000
committerGitHub <noreply@github.com>2016-12-07 15:01:20 +0000
commit15769731a2411933bb9236d06c5f15e2c4e7929b (patch)
tree0e240ffef222e7ee122548db88609b3e27b21783
parent5c18ece35f0030ceb92a37bd5f6183c3cc458eff (diff)
parent9af59f5dcd7ae7ae8210811bbe5458934a55e112 (diff)
downloadlibgit2-15769731a2411933bb9236d06c5f15e2c4e7929b.tar.gz
Merge pull request #4014 from bokic/patch-1
Properly pass `wchar *` type to giterr_set
-rw-r--r--src/win32/w32_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/w32_util.h b/src/win32/w32_util.h
index 2e475e5e9..784a7a04c 100644
--- a/src/win32/w32_util.h
+++ b/src/win32/w32_util.h
@@ -174,7 +174,7 @@ GIT_INLINE(int) git_win32__file_attribute_to_stat(
/* st_size gets the UTF-8 length of the target name, in bytes,
* not counting the NULL terminator */
if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
- giterr_set(GITERR_OS, "Could not convert reparse point name for '%s'", path);
+ giterr_set(GITERR_OS, "Could not convert reparse point name for '%ls'", path);
return -1;
}
}