summaryrefslogtreecommitdiff
path: root/libs/os/src/os_task.c
diff options
context:
space:
mode:
authorSterling Hughes <sterling@apache.org>2016-01-30 18:13:50 -0800
committerSterling Hughes <sterling@apache.org>2016-01-30 18:13:50 -0800
commite66ce8989e860f7892fe1c7e0628126f69326179 (patch)
treee88dd6573cda3a0d9f88669985662ae5c1a8fb8e /libs/os/src/os_task.c
parent902da3c242992c985840dbb41daf19adbfc8ddf4 (diff)
add mempool statistics to both the shell & newtmgr. update shell task statistics to include new variables.
Diffstat (limited to 'libs/os/src/os_task.c')
-rw-r--r--libs/os/src/os_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/os/src/os_task.c b/libs/os/src/os_task.c
index afe3c62b..e13f24fe 100644
--- a/libs/os/src/os_task.c
+++ b/libs/os/src/os_task.c
@@ -161,7 +161,7 @@ os_task_info_get_next(const struct os_task *prev, struct os_task_info *oti)
oti->oti_next_checkin = next->t_sanity_check.sc_checkin_last +
next->t_sanity_check.sc_checkin_itvl;
OS_EXIT_CRITICAL(sr);
- strcpy(oti->oti_name, next->t_name);
+ strncpy(oti->oti_name, next->t_name, sizeof(oti->oti_name));
return (next);
}