diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-11 22:25:10 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-02-11 22:25:10 +0000 |
| commit | 1ea859c431b33a384727c0016917dde15bceeff3 (patch) | |
| tree | a2e8a040abaa6334e6e5c0442a75b5777355000d /src/game | |
| parent | 79dfdb3cd71a44ec3cd8e1dab15263837381cbbf (diff) | |
| download | zcatch-1ea859c431b33a384727c0016917dde15bceeff3.tar.gz zcatch-1ea859c431b33a384727c0016917dde15bceeff3.zip | |
security audit: fixed so the packer functions checks for errors
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/client/gc_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/client/gc_client.cpp b/src/game/client/gc_client.cpp index b8ffac09..20d1df7c 100644 --- a/src/game/client/gc_client.cpp +++ b/src/game/client/gc_client.cpp @@ -546,7 +546,7 @@ void render_spectators(float x, float y, float w) int count = 0; float h = 120.0f; - str_copy(buffer, sizeof(buffer), "Spectators: "); + str_copy(buffer, "Spectators: ", sizeof(buffer)); gfx_blend_normal(); gfx_texture_set(-1); @@ -614,7 +614,7 @@ void render_scoreboard(float x, float y, float w, int team, const char *title) if(gameobj) { char buf[128]; - str_format(buf, buf, "%d", gameobj->teamscore[team&1]); + str_format(buf, sizeof(buf), "%d", gameobj->teamscore[team&1]); tw = gfx_text_width(0, 48, buf, -1); gfx_text(0, x+w-tw-30, y, 48, buf, -1); } |