summaryrefslogtreecommitdiffhomepage
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rw-r--r--parser/raylib_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/raylib_parser.c b/parser/raylib_parser.c
index ec1d490e..3e36f41f 100644
--- a/parser/raylib_parser.c
+++ b/parser/raylib_parser.c
@@ -1243,7 +1243,7 @@ static char **GetTextLines(const char *buffer, int length, int *linesCount)
while ((bufferPtr[index] == ' ') || (bufferPtr[index] == '\t')) index++;
int j = 0;
- while (bufferPtr[index + j] != '\n')
+ while (bufferPtr[index + j] != '\n' && bufferPtr[index + j] != '\0')
{
lines[i][j] = bufferPtr[index + j];
j++;