diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-12 07:14:16 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-12 07:14:16 -0600 |
commit | 41899728e94682f5bb7573d3368b82f22584d0fd (patch) | |
tree | 90d70d2e75336f26126d151b1ddf244832c74734 /nuttx/libc/string | |
parent | 25dcab825ed7550550848e56d95c48c270f565e5 (diff) | |
download | px4-nuttx-41899728e94682f5bb7573d3368b82f22584d0fd.tar.gz px4-nuttx-41899728e94682f5bb7573d3368b82f22584d0fd.tar.bz2 px4-nuttx-41899728e94682f5bb7573d3368b82f22584d0fd.zip |
Cosmetic change to force compliance with coding standard
Diffstat (limited to 'nuttx/libc/string')
-rw-r--r-- | nuttx/libc/string/lib_strncpy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/libc/string/lib_strncpy.c b/nuttx/libc/string/lib_strncpy.c index bba16a0a3..095111c94 100644 --- a/nuttx/libc/string/lib_strncpy.c +++ b/nuttx/libc/string/lib_strncpy.c @@ -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 |