You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2015/11/24 21:39:54 UTC

[08/11] incubator-mynewt-larva git commit: strlcpy() -> strncpy().

strlcpy() -> strncpy().


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/df3edae9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/df3edae9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/df3edae9

Branch: refs/heads/master
Commit: df3edae9c20901cce614302e8348756d2bcfdf2f
Parents: e340d4e
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Tue Nov 24 11:42:06 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Tue Nov 24 11:42:06 2015 -0800

----------------------------------------------------------------------
 libs/os/src/os_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/df3edae9/libs/os/src/os_info.c
----------------------------------------------------------------------
diff --git a/libs/os/src/os_info.c b/libs/os/src/os_info.c
index 06e7131..ebb6f12 100644
--- a/libs/os/src/os_info.c
+++ b/libs/os/src/os_info.c
@@ -131,7 +131,7 @@ _os_task_copy_info(struct os_task *t, void *arg)
 
     walk->info->oti_tid = t->t_taskid;
     walk->info->oti_prio = t->t_prio;
-    strlcpy(walk->info->oti_name, t->t_name, OS_TASK_INFO_NAME_SIZE);
+    strncpy(walk->info->oti_name, t->t_name, OS_TASK_INFO_NAME_SIZE);
     walk->info->oti_state = (uint8_t) t->t_state;
     walk->info->oti_next_wakeup = t->t_next_wakeup;
     walk->info->oti_flags = t->t_flags;