sezero's win32 Sys_ConsoleInput patch.

This commit is contained in:
Bill Currie 2010-11-21 13:55:03 +09:00
parent 204c509a43
commit 6771e7b8b5

View file

@ -604,9 +604,14 @@ Sys_ConsoleInput (void)
}
text[len] = c;
len++;
text[len] = 0;
if (len == sizeof (text))
if (len < sizeof (text))
text[len] = 0;
else {
// buffer is full
len = 0;
text[sizeof (text) - 1] = 0;
return text;
}
}
return NULL;