diff options
| author | Ray <[email protected]> | 2020-02-26 23:38:12 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-02-26 23:38:12 +0100 |
| commit | fadd74358b006de84c94315fdbaf8d7d16af0096 (patch) | |
| tree | 75d1316d7c9d926ab389b9b2c1e1e330735b849b | |
| parent | 7912fac815c7bbebf55e1dea8c2484ef2f9b9db2 (diff) | |
| download | raylib-fadd74358b006de84c94315fdbaf8d7d16af0096.tar.gz raylib-fadd74358b006de84c94315fdbaf8d7d16af0096.zip | |
Security check
| -rw-r--r-- | src/rlgl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; + if (size == count) text[count] = '\0'; } fclose(textFile); |
