summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-08-13 11:36:24 -0700
committerVicent Martí <vicent@github.com>2013-08-13 11:36:24 -0700
commit40948998badd892754a55197ef1b6b47b107afed (patch)
treeb0cbb27af13b6dda5abff644979afe193a2d7aa8 /src/fileops.c
parent14da618260be02c63b4f08dca8e6ab479f7449d7 (diff)
parent0228a514294bcb9d23bf24c61199a1a3e34d4772 (diff)
downloadlibgit2-40948998badd892754a55197ef1b6b47b107afed.tar.gz
Merge pull request #1767 from libgit2/win32-bigger-utf8-buffer
Bigger buffer for utf-8 parsing in win32
Diffstat (limited to 'src/fileops.c')
-rw-r--r--src/fileops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileops.c b/src/fileops.c
index 7f8418d7a..aea8075d5 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -58,9 +58,9 @@ int git_futils_creat_locked(const char *path, const mode_t mode)
int fd;
#ifdef GIT_WIN32
- wchar_t buf[GIT_WIN_PATH];
+ git_win32_path buf;
- git__utf8_to_16(buf, GIT_WIN_PATH, path);
+ git_win32_path_from_c(buf, path);
fd = _wopen(buf, O_WRONLY | O_CREAT | O_TRUNC |
O_EXCL | O_BINARY | O_CLOEXEC, mode);
#else