summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Barbulovski <bbarbulovski@gmail.com>2016-11-20 11:30:45 +0100
committerGitHub <noreply@github.com>2016-11-20 11:30:45 +0100
commit86364af99590b3df7e7f647eb92a9449b29cee57 (patch)
tree1f52400df2afe6240e95adedfd2e556ddf3f6c6c
parentae5838f118a4819e608990a815bf8fc482be5772 (diff)
downloadlibgit2-86364af99590b3df7e7f647eb92a9449b29cee57.tar.gz
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..66987cc6b 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 '%S'", path);
return -1;
}
}