fix one-byte overflow in legacy getpass function
authorRich Felker <dalias@aerifal.cx>
Tue, 14 Mar 2017 19:13:16 +0000 (15:13 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 14 Mar 2017 19:13:16 +0000 (15:13 -0400)
commit3ec8b3aeb88cef8574a7b0f677ebc1801f03821d
tree3b2532fbff7a627bf8804cb557e88f45fea7c0a9
parent733d1ea759119bcd0554f25034d1b4113b910900
fix one-byte overflow in legacy getpass function

if the length of the input was equal to the buffer size (128), a fixed
value of zero was written one byte past the end of the static buffer.
src/legacy/getpass.c