mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 21:20:33 +00:00
d13df6cd37
I was looking through the code for Con_BufferAddText trying to figure out what it was doing (answer: ring buffer for both text and lines) and got suspicious about its handling of the line objects. I decided an automated test was in order. It turns out I was right: filling the buffer with a single long line causes the tail line to trample the current line, setting its pointer and length to 0 when the final character is put in the buffer. |
||
---|---|---|
.. | ||
test | ||
bi_inputline.c | ||
buffer.c | ||
client.c | ||
complete.c | ||
console.c | ||
filelist.c | ||
list.c | ||
Makemodule.am | ||
menu.c | ||
server.c |