diff options
author | Ben Straub <bs@github.com> | 2013-08-05 11:41:39 -0700 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2013-08-05 11:41:39 -0700 |
commit | d85636190f127efa2ec4a6593124c037dfec0ba9 (patch) | |
tree | 1c19c3cd463e69472d6d58cebd560d8ec025796e /src/win32/utf-conv.h | |
parent | 9b7d02ff2d9b87d61778ee7ef5e2d43bf4c561f0 (diff) | |
download | libgit2-d85636190f127efa2ec4a6593124c037dfec0ba9.tar.gz |
Split UTF-16 and UTF-8 buffer sizes for win32
Also fixed up call-sites to use the correct buffer sizes, especially
when converting to utf-8.
Diffstat (limited to 'src/win32/utf-conv.h')
-rw-r--r-- | src/win32/utf-conv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win32/utf-conv.h b/src/win32/utf-conv.h index 6cc9205f7..9922e2969 100644 --- a/src/win32/utf-conv.h +++ b/src/win32/utf-conv.h @@ -10,7 +10,8 @@ #ifndef INCLUDE_git_utfconv_h__ #define INCLUDE_git_utfconv_h__ -#define GIT_WIN_PATH (260 + 1) +#define GIT_WIN_PATH_UTF16 (260 + 1) +#define GIT_WIN_PATH_UTF8 (260 * 4 + 1) int git__utf8_to_16(wchar_t *dest, size_t length, const char *src); int git__utf16_to_8(char *dest, const wchar_t *src); |