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 (#1175)

see:
26b8719
  • Loading branch information
SomaZ committed Sep 30, 2023
1 parent c4d39a1 commit 3544f14
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 @@ -429,7 +429,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 3544f14

Please sign in to comment.