libs/libc/string/lib_stpncpy.c: Correct the return poineter value for the case where the NUL terminator is transferred.

This commit is contained in:
Gregory Nutt
2018-09-18 06:43:10 -06:00
parent 68d4c1d4ed
commit 3950398841
2 changed files with 15 additions and 8 deletions
+5 -5
View File
@@ -63,8 +63,8 @@
* the string pointed to by the message argument will be written,
* followed by a colon and a space.
*
* Then the signal description string associated with signum or with the
* signal indicated by pinfo will be written, followed by a newline.
* Then the signal description string associated with signum will be
* written, followed by a newline.
*
* Returned Value
* None. The errno value is never set in this implementation.
@@ -99,8 +99,8 @@ void psignal(int signum, FAR const char *message)
* the string pointed to by the message argument will be written,
* followed by a colon and a space.
*
* Then the signal description string associated with signum or with the
* signal indicated by pinfo will be written, followed by a newline.
* Then the signal description string associated with the signal
* indicated by pinfo will be written, followed by a newline.
*
* Returned Value
* None. Since no value is returned, an application wishing to check for
@@ -121,4 +121,4 @@ void psiginfo(FAR const siginfo_t *pinfo, FAR const char *message)
}
}
#endif /* __KERNEL__ */
#endif /* !__KERNEL__ */