mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-27 09:07:25 -04:00
Update rtext.c
This commit is contained in:
@ -1724,7 +1724,7 @@ const char *TextRemoveSpaces(const char *text)
|
|||||||
if (text != NULL)
|
if (text != NULL)
|
||||||
{
|
{
|
||||||
// Avoid copying the ' ' characters
|
// Avoid copying the ' ' characters
|
||||||
for (int i = 0, j = 0; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[j] != '\0'); i++)
|
for (int i = 0, j = 0; (i < MAX_TEXT_BUFFER_LENGTH - 1) && (text[i] != '\0'); i++)
|
||||||
{
|
{
|
||||||
if (text[i] != ' ') { buffer[j] = text[i]; j++; }
|
if (text[i] != ' ') { buffer[j] = text[i]; j++; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user