From 335fa81b187c8b99bb0904c14639929d483bac2b Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 6 Jun 2013 11:22:38 +0000 Subject: [PATCH] game.c: fix out-of-bounds write in G_GetSubString(). git-svn-id: https://svn.eduke32.com/eduke32@3852 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index c51116dcc..4ff745f27 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -379,7 +379,7 @@ char* G_GetSubString(const char *text, const char *end, const int32_t iter, cons ++counter; } - line[++counter] = '\0'; + line[counter] = '\0'; return line; }