mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
sezero's win32 Sys_ConsoleInput patch.
This commit is contained in:
parent
204c509a43
commit
6771e7b8b5
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue