libs/libc: Correct some errors in psignal() and stpncpy().
This commit is contained in:
parent
f185c79ea6
commit
56b4bc8bcb
@ -79,7 +79,7 @@ void psignal(int signum, FAR const char *message)
|
||||
|
||||
if (message != NULL)
|
||||
{
|
||||
(void)fprintf(stderr, "%s: %s\n", strsignal(signum));
|
||||
(void)fprintf(stderr, "%s: %s\n", message, strsignal(signum));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -46,7 +46,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: strncpy
|
||||
* Name: stpncpy
|
||||
*
|
||||
* Description:
|
||||
* Copies the string pointed to by 'src' (including the terminating NUL
|
||||
@ -68,8 +68,8 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_LIBC_ARCH_STRNCPY
|
||||
FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n)
|
||||
#ifndef CONFIG_LIBC_ARCH_STPNCPY
|
||||
FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n)
|
||||
{
|
||||
FAR char *end = dest + n; /* End of dest buffer + 1 byte */
|
||||
FAR char *ret; /* Value to be returned */
|
||||
|
Loading…
x
Reference in New Issue
Block a user