Skip to content

Commit 1576973

Browse files
author
Edward Thomson
authored
Merge pull request libgit2#4014 from bokic/patch-1
Properly pass `wchar *` type to giterr_set
2 parents 5c18ece + 9af59f5 commit 1576973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win32/w32_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ GIT_INLINE(int) git_win32__file_attribute_to_stat(
174174
/* st_size gets the UTF-8 length of the target name, in bytes,
175175
* not counting the NULL terminator */
176176
if ((st->st_size = git__utf16_to_8(NULL, 0, target)) < 0) {
177-
giterr_set(GITERR_OS, "Could not convert reparse point name for '%s'", path);
177+
giterr_set(GITERR_OS, "Could not convert reparse point name for '%ls'", path);
178178
return -1;
179179
}
180180
}

0 commit comments

Comments
 (0)