Skip to content

Commit

Permalink
Fix buffer overrun while writing to "crosshairDotColor"
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedSnark committed Dec 11, 2024
1 parent 2716616 commit 1dada6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cl_dll/hud_crosshair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int CHudCrosshair::Draw(float time)
std::istringstream ss(bxt_cross_dot_color->string);
ss >> r >> g >> b;

static float crosshairDotColor[2];
static float crosshairDotColor[3];
crosshairDotColor[0] = r;
crosshairDotColor[1] = g;
crosshairDotColor[2] = b;
Expand Down

0 comments on commit 1dada6a

Please sign in to comment.