From ca22a8794977aadce9a90f41bdb7693b16e3010f Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 3 Mar 2021 19:55:09 +0100 Subject: [PATCH] REVIEWED: TextFormat() #1626 --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index be8ab48c..204cc4e3 100644 --- a/src/text.c +++ b/src/text.c @@ -1175,7 +1175,7 @@ const char *TextFormat(const char *text, ...) va_list args; va_start(args, text); - vsprintf(currentBuffer, text, args); + vsnprintf(currentBuffer, MAX_TEXT_BUFFER_LENGTH, text, args); va_end(args); index += 1; // Move to next buffer for next function call