Skip to content

Commit f21c1cc

Browse files
committed
Update rtext.c
1 parent ec82807 commit f21c1cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rtext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,13 +1459,13 @@ char **LoadTextLines(const char *text, int *count)
14591459
int lineCount = 1;
14601460
int textSize = (int)strlen(text);
14611461

1462-
// Text pass to get required line count
1462+
// First text scan pass to get required line count
14631463
for (int i = 0; i < textSize; i++)
14641464
{
14651465
if (text[i] == '\n') lineCount++;
14661466
}
14671467

1468-
char **lines = (char **)RL_CALLOC(lineCount, sizeof(char *));
1468+
lines = (char **)RL_CALLOC(lineCount, sizeof(char *));
14691469
for (int i = 0, l = 0, lineLen = 0; i <= textSize; i++)
14701470
{
14711471
if ((text[i] == '\n') || (text[i] == '\0'))

0 commit comments

Comments
 (0)