diff options
author | Max Kirillov <max@max630.net> | 2016-12-19 23:32:00 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-20 09:04:57 -0800 |
commit | c46458e82f0112ed288bcf89bea973b859e1854e (patch) | |
tree | 81aabd5e242f3d309885bdc78de35e71f6f9e757 /copy.c | |
parent | mingw: make isatty() recognize MSYS2's pseudo terminals (/dev/pty*) (diff) | |
download | tgif-c46458e82f0112ed288bcf89bea973b859e1854e.tar.xz |
mingw: consider that UNICODE_STRING::Length counts bytes
UNICODE_STRING::Length field means size of buffer in bytes[1],
despite of buffer itself being array of wchar_t. Because of that
terminating zero is placed twice as far. Fix it.
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa380518.aspx
Signed-off-by: Max Kirillov <max@max630.net>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'copy.c')
0 files changed, 0 insertions, 0 deletions