Skip to content

Commit

Permalink
[MP] fix off-by-one in TruncateGLExtensionsString which affects mods…
Browse files Browse the repository at this point in the history
… not derived from OJK (JACoders#1175)

see:
JACoders@26b8719
  • Loading branch information
SomaZ authored and MaceMadunusus committed Oct 24, 2023
1 parent c919bb2 commit f8e62c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemp/rd-rend2/tr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static const char *TruncateGLExtensionsString (const char *extensionsString, int

char *truncatedExtensions;

while ( (q = strchr (p, ' ')) != NULL && numExtensions <= maxExtensions )
while ( (q = strchr (p, ' ')) != NULL && numExtensions < maxExtensions )
{
p = q + 1;
numExtensions++;
Expand Down

0 comments on commit f8e62c9

Please sign in to comment.