Skip to content

Commit

Permalink
fix bad command byte because the new data length was too long
Browse files Browse the repository at this point in the history
  • Loading branch information
M-itch committed Dec 16, 2013
1 parent 2d7f29f commit 1a1504e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcod.cpp
Expand Up @@ -1487,6 +1487,8 @@ void hook_ServerCommand( netadr_t from, msg_t *msg )
{
if(strcmp (pch, "deny") == 0)
strcat (d, "accept");
else if(strcmp (pch, "INVALID_CDKEY") == 0 || strcmp (pch, "BANNED_CDKEY") == 0)
strcat (d, "KEY_IS_GOOD"); // to prevent too long data
else
strcat (d, pch);

Expand Down

0 comments on commit 1a1504e

Please sign in to comment.