Skip to content

Commit

Permalink
Merge pull request #339 from evhskurk/master
Browse files Browse the repository at this point in the history
PAUSE: format string injections are too exciting
  • Loading branch information
tcsabina authored Apr 3, 2024
2 parents 962a82a + a8ab437 commit d33f0e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -8354,7 +8354,7 @@ void PausedTic(int duration)

if (time != prevtime) {
for (p = world; (p = find_client(p));)
{
{
stuffcmd(p, "play buttons/switch04.wav\n");
}

Expand Down Expand Up @@ -8448,7 +8448,7 @@ void TogglePause()
}

when_to_pause = g_globalvars.time + 3;
snprintf(pause_name, sizeof(pause_name), self->netname);
strlcpy(pause_name, self->netname, sizeof(pause_name));
pauses_remaining = self->k_pauseRequests;
}
}
Expand Down

0 comments on commit d33f0e7

Please sign in to comment.