From 895dabc3a130da8c4fd7c9fdd8491f75deb66e16 Mon Sep 17 00:00:00 2001 From: Artem Golubikhin Date: Sat, 2 May 2020 00:40:52 +0300 Subject: [PATCH] Fixed format buffer size in `UTIL_dtosX` functions (#528) --- regamedll/dlls/util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regamedll/dlls/util.cpp b/regamedll/dlls/util.cpp index e5e04311..4a602590 100644 --- a/regamedll/dlls/util.cpp +++ b/regamedll/dlls/util.cpp @@ -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; }