Skip to content

Commit 895dabc

Browse files
Fixed format buffer size in UTIL_dtosX functions (#528)
1 parent 5bbba22 commit 895dabc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

regamedll/dlls/util.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,28 +772,28 @@ void UTIL_SayTextAll(const char *pText, CBaseEntity *pEntity)
772772

773773
char *UTIL_dtos1(int d)
774774
{
775-
static char buf[8];
775+
static char buf[12];
776776
Q_sprintf(buf, "%d", d);
777777
return buf;
778778
}
779779

780780
char *UTIL_dtos2(int d)
781781
{
782-
static char buf[8];
782+
static char buf[12];
783783
Q_sprintf(buf, "%d", d);
784784
return buf;
785785
}
786786

787787
NOXREF char *UTIL_dtos3(int d)
788788
{
789-
static char buf[8];
789+
static char buf[12];
790790
Q_sprintf(buf, "%d", d);
791791
return buf;
792792
}
793793

794794
NOXREF char *UTIL_dtos4(int d)
795795
{
796-
static char buf[8];
796+
static char buf[12];
797797
Q_sprintf(buf, "%d", d);
798798
return buf;
799799
}

0 commit comments

Comments
 (0)