Fixed format buffer size in UTIL_dtosX functions (#528)

This commit is contained in:
Artem Golubikhin 2020-05-02 00:40:52 +03:00 committed by GitHub
parent 5bbba22218
commit 895dabc3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -772,28 +772,28 @@ void UTIL_SayTextAll(const char *pText, CBaseEntity *pEntity)
char *UTIL_dtos1(int d) char *UTIL_dtos1(int d)
{ {
static char buf[8]; static char buf[12];
Q_sprintf(buf, "%d", d); Q_sprintf(buf, "%d", d);
return buf; return buf;
} }
char *UTIL_dtos2(int d) char *UTIL_dtos2(int d)
{ {
static char buf[8]; static char buf[12];
Q_sprintf(buf, "%d", d); Q_sprintf(buf, "%d", d);
return buf; return buf;
} }
NOXREF char *UTIL_dtos3(int d) NOXREF char *UTIL_dtos3(int d)
{ {
static char buf[8]; static char buf[12];
Q_sprintf(buf, "%d", d); Q_sprintf(buf, "%d", d);
return buf; return buf;
} }
NOXREF char *UTIL_dtos4(int d) NOXREF char *UTIL_dtos4(int d)
{ {
static char buf[8]; static char buf[12];
Q_sprintf(buf, "%d", d); Q_sprintf(buf, "%d", d);
return buf; return buf;
} }