REVIEWED: Naming: length vs size

This commit is contained in:
Ray
2021-09-01 23:40:51 +02:00
parent 6e76baa6a9
commit 9362eaf9c6
6 changed files with 63 additions and 63 deletions

View File

@@ -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] == '.')
{