summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2020-01-22 15:11:22 +0100
committerRay <[email protected]>2020-01-22 15:11:22 +0100
commit49b723e76d82ebea7eeab84bd728d7d53a9eca1b (patch)
tree9af589b7d5e7be6401da4eb39f706537db41f299 /src
parent71017993ce91bf9beafbaff977c2665f22e85e60 (diff)
downloadraylib-49b723e76d82ebea7eeab84bd728d7d53a9eca1b.tar.gz
raylib-49b723e76d82ebea7eeab84bd728d7d53a9eca1b.zip
Correct issue with define
Diffstat (limited to 'src')
-rw-r--r--src/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index ae5b98da..242b4fa8 100644
--- a/src/text.c
+++ b/src/text.c
@@ -73,7 +73,7 @@
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
-#define MAX_TEXT_BUFFER_LENGTH 1024 // Size of internal static buffers used on some functions:
+#define MAX_TEXT_BUFFER_LENGTH 1024 // Size of internal static buffers used on some functions:
// TextFormat(), TextSubtext(), TextToUpper(), TextToLower(), TextToPascal()
#define MAX_TEXT_UNICODE_CHARS 512 // Maximum number of unicode codepoints
@@ -1300,7 +1300,7 @@ const char **TextSplit(const char *text, char delimiter, int *count)
counter = 1;
// Count how many substrings we have on text and point to every one
- for (int i = 0; i < MAX_TEXT_BUFFER_LENGTH; i++)
+ for (int i = 0; i < TEXTSPLIT_MAX_TEXT_BUFFER_LENGTH; i++)
{
buffer[i] = text[i];
if (buffer[i] == '\0') break;