From 9a43886be604101efc84a6ca4118beb819465ff1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Nov 2020 07:35:39 +0100 Subject: [PATCH] - Duke: fixed parsing of overlong CON identifiers. --- source/games/duke/src/gamedef.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/gamedef.cpp b/source/games/duke/src/gamedef.cpp index c40b2110b..c07a4a5e2 100644 --- a/source/games/duke/src/gamedef.cpp +++ b/source/games/duke/src/gamedef.cpp @@ -607,11 +607,11 @@ int ConCompiler::transword(void) l = 0; while (isaltok(*(textptr + l)) && !(*(textptr + l) == '.')) { - if (l < 31) + if (l < 1023) { parsebuf[l] = textptr[l]; - l++; } + l++; } parsebuf[l] = 0; @@ -665,11 +665,11 @@ int ConCompiler::transnum(int type) l = 0; while (isaltok(*(textptr + l))) { - if (l < 31) + if (l < 1023) { parsebuf[l] = textptr[l]; - l++; } + l++; } parsebuf[l] = 0;