RENAMED: Variable names for consistency, textLength (length in bytes) vs textSize (measure in pixels)

This commit is contained in:
Ray
2025-12-11 21:41:25 +01:00
parent 2853b28d6d
commit b465b4e2ea
6 changed files with 36 additions and 36 deletions

View File

@@ -142,8 +142,8 @@ void TraceLog(int logType, const char *text, ...)
default: break;
}
unsigned int textSize = (unsigned int)strlen(text);
memcpy(buffer + strlen(buffer), text, (textSize < (MAX_TRACELOG_MSG_LENGTH - 12))? textSize : (MAX_TRACELOG_MSG_LENGTH - 12));
unsigned int textLength = (unsigned int)strlen(text);
memcpy(buffer + strlen(buffer), text, (textLength < (MAX_TRACELOG_MSG_LENGTH - 12))? textLength : (MAX_TRACELOG_MSG_LENGTH - 12));
strcat(buffer, "\n");
vprintf(buffer, args);
fflush(stdout);