cmd: null terminate answer string (Coverity).

This commit is contained in:
Marcus Meissner 2013-07-10 08:26:14 +02:00 committed by Alexandre Julliard
parent 31b1bcfb24
commit e85d3c7108

View file

@ -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)