Commit e85d3c71 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

cmd: null terminate answer string (Coverity).

parent 31b1bcfb
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment