diff options
Diffstat (limited to 'nuttx/include/nuttx/sched.h')
-rw-r--r-- | nuttx/include/nuttx/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/sched.h b/nuttx/include/nuttx/sched.h index 563773ec1..fa0810711 100644 --- a/nuttx/include/nuttx/sched.h +++ b/nuttx/include/nuttx/sched.h @@ -536,7 +536,7 @@ struct tcb_s struct xcptcontext xcp; /* Interrupt register save area */ #if CONFIG_TASK_NAME_SIZE > 0 - char name[CONFIG_TASK_NAME_SIZE]; /* Task name */ + char name[CONFIG_TASK_NAME_SIZE+1]; /* Task name (with NUL terminator) */ #endif }; |