mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
@@ -3013,8 +3013,10 @@ char *LoadText(const char *fileName)
|
||||
if (count < size)
|
||||
{
|
||||
text = RL_REALLOC(text, count + 1);
|
||||
text[count] = '\0';
|
||||
}
|
||||
|
||||
// zero-terminate the string
|
||||
text[count] = '\0';
|
||||
}
|
||||
|
||||
fclose(textFile);
|
||||
|
Reference in New Issue
Block a user