From 5ebf11ee63f1baaf070fd8484d99362810cd5bcc Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 2 May 2012 15:36:19 +0000 Subject: 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 --- nuttx/sched/prctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/sched/prctl.c') 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; -- cgit v1.2.3