diff options
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index 302bc691..9aaf548b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -182,7 +182,7 @@ unsigned char *LoadFileData(const char *fileName, int *bytesRead) if (size > 0) { data = (unsigned char *)RL_MALLOC(sizeof(unsigned char)*size); - + // NOTE: fread() returns number of read elements instead of bytes, so we read [1 byte, size elements] int count = fread(data, sizeof(unsigned char), size, file); *bytesRead = count; |
