Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
read-tree: use OPT_BOOL instead of OPT_SET_INT
[gitweb.git]
/
compat
/
winansi.c
diff --git
a/compat/winansi.c
b/compat/winansi.c
index 477209fce7beedca3159a8140d2ac9e3a69400f3..3c9ed3cfe07c1f3b58f5400af861fb8ae44c3fdb 100644
(file)
--- a/
compat/winansi.c
+++ b/
compat/winansi.c
@@
-540,7
+540,7
@@
static void detect_msys_tty(int fd)
buffer, sizeof(buffer) - 2, &result)))
return;
name = nameinfo->Name.Buffer;
- name[nameinfo->Name.Length] = 0;
+ name[nameinfo->Name.Length
/ sizeof(*name)
] = 0;
/*
* Check if this could be a MSYS2 pty pipe ('msys-XXXX-ptyN-XX')