parent
f2247c6f0a
commit
572969d8b7
1 changed files with 3 additions and 1 deletions
|
@ -3013,8 +3013,10 @@ char *LoadText(const char *fileName)
|
||||||
if (count < size)
|
if (count < size)
|
||||||
{
|
{
|
||||||
text = RL_REALLOC(text, count + 1);
|
text = RL_REALLOC(text, count + 1);
|
||||||
text[count] = '\0';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// zero-terminate the string
|
||||||
|
text[count] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(textFile);
|
fclose(textFile);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue