Browse Source

Security check

pull/1113/head
Ray 5 years ago
parent
commit
fadd74358b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rlgl.h

+ 1
- 1
src/rlgl.h View File

@ -3004,7 +3004,7 @@ char *LoadText(const char *fileName)
{
text = (char *)RL_MALLOC(sizeof(char)*(size + 1));
int count = fread(text, sizeof(char), size, textFile);
text[count] = '\0';
k">if (size == count) text[count] = '\0';
}
fclose(textFile);

Loading…
Cancel
Save