diff options
| author | Ray <[email protected]> | 2021-09-01 23:40:51 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-09-01 23:40:51 +0200 |
| commit | 9362eaf9c670c86e3ce4045b7465e55db47bddb7 (patch) | |
| tree | c6adbca1371e113fa10da21e168a29ef27300d4f /src/core.c | |
| parent | 6e76baa6a93d039e132fe11eedc74958971bf4a3 (diff) | |
| download | raylib-9362eaf9c670c86e3ce4045b7465e55db47bddb7.tar.gz raylib-9362eaf9c670c86e3ce4045b7465e55db47bddb7.zip | |
REVIEWED: Naming: length vs size
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2767,9 +2767,9 @@ const char *GetFileNameWithoutExt(const char *filePath) if (filePath != NULL) strcpy(fileName, GetFileName(filePath)); // Get filename with extension - int len = (int)strlen(fileName); + int size = (int)strlen(fileName); // Get size in bytes - for (int i = 0; (i < len) && (i < MAX_FILENAMEWITHOUTEXT_LENGTH); i++) + for (int i = 0; (i < size) && (i < MAX_FILENAMEWITHOUTEXT_LENGTH); i++) { if (fileName[i] == '.') { |
