summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-03 19:55:09 +0100
committerRay <[email protected]>2021-03-03 19:55:09 +0100
commitca22a8794977aadce9a90f41bdb7693b16e3010f (patch)
tree946840caaa1d45315fe979a244462e05b40be8f6 /src
parentc938d71d15192ba62049294d715bcffd65d44eea (diff)
downloadraylib-ca22a8794977aadce9a90f41bdb7693b16e3010f.tar.gz
raylib-ca22a8794977aadce9a90f41bdb7693b16e3010f.zip
REVIEWED: TextFormat() #1626
Diffstat (limited to 'src')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
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