1
mirror of https://github.com/hashcat/hashcat synced 2024-11-02 20:39:22 +01:00

Fixed 'buf' initialization for windows

This commit is contained in:
Gabriele 'matrix' Gristina 2016-01-24 17:20:01 +01:00
parent 0997ae029e
commit 58359f3b7e

View File

@ -2446,10 +2446,12 @@ int tty_getchar()
// Then it wants to read with getche () a keyboard input
// which has never been made.
INPUT_RECORD buf[100] = { 0 };
INPUT_RECORD buf[100];
DWORD num = 0;
memset (buf, 0, sizeof (buf));
ReadConsoleInput (stdinHandle, buf, 100, &num);
FlushConsoleInputBuffer (stdinHandle);