mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 15:38:29 +00:00
cmd: null terminate answer string (Coverity).
This commit is contained in:
parent
31b1bcfb24
commit
e85d3c7108
@ -400,6 +400,7 @@ void WCMD_choice (const WCHAR * args) {
|
||||
while (TRUE) {
|
||||
|
||||
/* FIXME: Add support for option /T */
|
||||
answer[1] = 0; /* terminate single character string */
|
||||
WCMD_ReadFile(GetStdHandle(STD_INPUT_HANDLE), answer, 1, &count);
|
||||
|
||||
if (!opt_s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user