Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
refs.c: kill register_ref_store(), add register_submodule_ref_store()
[gitweb.git]
/
compat
/
winansi.c
diff --git
a/compat/winansi.c
b/compat/winansi.c
index dac5d01c53e52f75bc6b1d4181fe9cdf9397b2ca..793420f9d0d7732cb7dc2aa94845a22086fe7021 100644
(file)
--- a/
compat/winansi.c
+++ b/
compat/winansi.c
@@
-539,7
+539,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')