diff options
author | Sterling Hughes <sterling@apache.org> | 2016-01-30 18:13:50 -0800 |
---|---|---|
committer | Sterling Hughes <sterling@apache.org> | 2016-01-30 18:13:50 -0800 |
commit | e66ce8989e860f7892fe1c7e0628126f69326179 (patch) | |
tree | e88dd6573cda3a0d9f88669985662ae5c1a8fb8e /libs/os/src/os_task.c | |
parent | 902da3c242992c985840dbb41daf19adbfc8ddf4 (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.c | 2 |
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); } |