Update rtext.c

This commit is contained in:
Murlocohol 2023-10-11 05:47:15 -04:00 committed by GitHub
parent 119c25dac6
commit a19eec368a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1380,7 +1380,6 @@ const char *TextFormat(const char *text, ...)
// We are going to insert [TRUN] at the end of the string so the user knows what happened // We are going to insert [TRUN] at the end of the string so the user knows what happened
char *truncBuffer = buffers[index] + MAX_TEXT_BUFFER_LENGTH - 7; // 7 = six letters + '\0' char *truncBuffer = buffers[index] + MAX_TEXT_BUFFER_LENGTH - 7; // 7 = six letters + '\0'
sprintf(truncBuffer, "[TRUN]"); sprintf(truncBuffer, "[TRUN]");
TRACELOG(LOG_WARNING, "RTEXT: TextFormat string was [TRUN]cated. If you need longer strings, please increase MAX_TEXT_BUFFER_LENGTH.");
} }
index += 1; // Move to next buffer for next function call index += 1; // Move to next buffer for next function call