b1629fb768
The stores it's text in the key_lines array which is NUM_KEY_LINES * MAXCMDLINE chars long. The code never checked for overflows, it just assumed that a line will never be longer then 256 chars * 8 = 2048 pixel. With modern displays we can have higher vertical resolutions, so the array will overflow sooner or later. Fix it by clamping the maximum line width to MAXCMDLINE - 2 chars (1 for the prompt and 1 for the terminating \0). While at it increase MAXCMDLINE to 1024 chars * 8 = 8192 pixel, which is more then 8k resolution and should be enough for the years to come. This is belived tot fix at least a part of issue #368. |
||
---|---|---|
doc | ||
src | ||
stuff | ||
.gitignore | ||
CHANGELOG | ||
CMakeLists.txt | ||
LICENSE | ||
Makefile | ||
README.md |
Yamagi Quake II
This is the Yamagi Quake II Client, an enhanced version of id Software's Quake II with focus on offline and coop gameplay. Both the gameplay and the graphics are unchanged, but many bugs if the last official release were fixed and some nice to have features like widescreen support and a modern OpenGL 3.2 renderer were added. Unlike most other Quake II source ports Yamagi Quake II is fully 64 bit clean. It works perfectly on modern processors and operating systems. Yamagi Quake II runs on nearly all common platforms; including FreeBSD, Linux, OpenBSD, Windows and OS X (experimental).
This code is build upon Icculus Quake II, which itself is based on Quake II 3.21. Yamagi Quake II is released under the terms of the GPL version 2. See the LICENSE file for further information.
Documentation
Before asking any questions read through the documentation! The current version can be found here: doc/01_index.md
Releases
The official releases (including Windows binaries) can be found at our homepage: https://www.yamagi.org/quake2