summaryrefslogtreecommitdiff
path: root/nuttx/sched/prctl.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 15:36:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-02 15:36:19 +0000
commit5ebf11ee63f1baaf070fd8484d99362810cd5bcc (patch)
tree2068f6956ceee5aba740da5acb8f97858e2b3f8a /nuttx/sched/prctl.c
parentaddae64d8c028ffd2c3bb05ec7ebdd1a73720998 (diff)
downloadpx4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.gz
px4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.bz2
px4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.zip
Fix some warnings and fix some simulator builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4688 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/prctl.c')
-rw-r--r--nuttx/sched/prctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/prctl.c b/nuttx/sched/prctl.c
index bc55992b4..817083561 100644
--- a/nuttx/sched/prctl.c
+++ b/nuttx/sched/prctl.c
@@ -140,7 +140,7 @@ int prctl(int option, ...)
/* 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];
+ name[CONFIG_TASK_NAME_SIZE-1] = '\0';
}
}
break;