Break up some long lines

This commit is contained in:
Gregory Nutt
2017-06-14 13:42:56 -06:00
parent 04ae3d51c2
commit 2245dddaf9
9 changed files with 34 additions and 18 deletions
+6 -2
View File
@@ -129,14 +129,18 @@ int prctl(int option, ...)
if (option == PR_SET_NAME)
{
/* Ensure that tcb->name will be null-terminated, truncating if necessary */
/* Ensure that tcb->name will be null-terminated, truncating if
* necessary.
*/
strncpy(tcb->name, name, CONFIG_TASK_NAME_SIZE);
tcb->name[CONFIG_TASK_NAME_SIZE] = '\0';
}
else
{
/* The returned value will be null-terminated, truncating if necessary */
/* The returned value will be null-terminated, truncating if
* necessary.
*/
strncpy(name, tcb->name, CONFIG_TASK_NAME_SIZE-1);
name[CONFIG_TASK_NAME_SIZE-1] = '\0';