From 86364af99590b3df7e7f647eb92a9449b29cee57 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Sun, 20 Nov 2016 11:30:45 +0100 Subject: [PATCH 1/2] Properly pass `wchar *` type to giterr_set --- src/win32/w32_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } From 9af59f5dcd7ae7ae8210811bbe5458934a55e112 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Tue, 6 Dec 2016 03:08:52 +0100 Subject: [PATCH 2/2] Properly pass `wchar *` type to giterr_set --- src/win32/w32_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/w32_util.h b/src/win32/w32_util.h index 66987cc6b..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; } }