From 248c248eceb4cce24f3fa00e08b46f7b47a234fb Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 1 Jul 2021 01:17:00 +0000 Subject: [PATCH] Fix a bad read in the console code. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5933 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/console.c b/engine/client/console.c index 53ff3340e..5cf36832f 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -2578,7 +2578,7 @@ static int Con_DrawConsoleLines(console_t *con, conline_t *l, float displayscrol if (selactive == 2 && s) { //checking for mouseover //scan earlier to find any link enclosure - for(; c >= (conchar_t*)(l+1); c--) + for(c--; c >= (conchar_t*)(l+1); c--) { if (*c == CON_LINKSTART) {