fix misspelled names in locally scoped code

These misspelled words are used in strictly local scopes.
Renaming these variables should not cause any problems.
This commit is contained in:
Lars Kruse
2025-05-02 11:31:19 +02:00
committed by Xiang Xiao
parent ce99762b36
commit 4568110d63
30 changed files with 184 additions and 184 deletions
+6 -6
View File
@@ -47,17 +47,17 @@
* Name: wcslen
*
* Description:
* Copy src to string dst of size siz. At most siz-1 characters
* will be copied. Always NUL terminates (unless siz == 0).
* Returns wcslen(src); if retval >= siz, truncation occurred.
* Copy src to string dst of size "size". At most size-1 characters
* will be copied. Always NUL terminates (unless size == 0).
* Returns wcslen(src); if retval >= size, truncation occurred.
*
****************************************************************************/
size_t wcslcpy(FAR wchar_t *dst, FAR const wchar_t *src, size_t siz)
size_t wcslcpy(FAR wchar_t *dst, FAR const wchar_t *src, size_t size)
{
FAR wchar_t *d = dst;
FAR const wchar_t *s = src;
size_t n = siz;
size_t n = size;
/* Copy as many bytes as will fit */
@@ -77,7 +77,7 @@ size_t wcslcpy(FAR wchar_t *dst, FAR const wchar_t *src, size_t siz)
if (n == 0)
{
if (siz != 0)
if (size != 0)
{
*d = '\0'; /* NUL-terminate dst */
}