mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-02 04:09:18 -05:00
Fix GuiTextSplit overrunning on max split count (#450)
Co-authored-by: segcore <segcore@github.com>
This commit is contained in:
@ -5269,7 +5269,7 @@ static const char **GuiTextSplit(const char *text, char delimiter, int *count, i
|
|||||||
buffer[i] = '\0'; // Set an end of string at this point
|
buffer[i] = '\0'; // Set an end of string at this point
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
if (counter > RAYGUI_TEXTSPLIT_MAX_ITEMS) break;
|
if (counter >= RAYGUI_TEXTSPLIT_MAX_ITEMS) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user