Skip to content

Commit

Permalink
Fixed format buffer size in UTIL_dtosX functions (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
WPMGPRoSToTeMa authored May 1, 2020
1 parent 5bbba22 commit 895dabc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions regamedll/dlls/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,28 +772,28 @@ void UTIL_SayTextAll(const char *pText, CBaseEntity *pEntity)

char *UTIL_dtos1(int d)
{
static char buf[8];
static char buf[12];
Q_sprintf(buf, "%d", d);
return buf;
}

char *UTIL_dtos2(int d)
{
static char buf[8];
static char buf[12];
Q_sprintf(buf, "%d", d);
return buf;
}

NOXREF char *UTIL_dtos3(int d)
{
static char buf[8];
static char buf[12];
Q_sprintf(buf, "%d", d);
return buf;
}

NOXREF char *UTIL_dtos4(int d)
{
static char buf[8];
static char buf[12];
Q_sprintf(buf, "%d", d);
return buf;
}
Expand Down

0 comments on commit 895dabc

Please sign in to comment.