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) {
|
while (TRUE) {
|
||||||
|
|
||||||
/* FIXME: Add support for option /T */
|
/* FIXME: Add support for option /T */
|
||||||
|
answer[1] = 0; /* terminate single character string */
|
||||||
WCMD_ReadFile(GetStdHandle(STD_INPUT_HANDLE), answer, 1, &count);
|
WCMD_ReadFile(GetStdHandle(STD_INPUT_HANDLE), answer, 1, &count);
|
||||||
|
|
||||||
if (!opt_s)
|
if (!opt_s)
|
||||||
|
|
Loading…
Reference in New Issue