mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Cosmetic change to force compliance with coding standard
This commit is contained in:
@@ -56,7 +56,11 @@ char *strncpy(FAR char *dest, FAR const char *src, size_t n)
|
||||
char *end = dest + n; /* End of dest buffer + 1 byte */
|
||||
|
||||
while ((dest != end) && (*dest++ = *src++) != '\0');
|
||||
while (dest != end) *dest++ = '\0';
|
||||
while (dest != end)
|
||||
{
|
||||
*dest++ = '\0';
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user