aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/nuttx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtos/nuttx.c')
-rw-r--r--src/rtos/nuttx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtos/nuttx.c b/src/rtos/nuttx.c
index 048f4af..b2151bb 100644
--- a/src/rtos/nuttx.c
+++ b/src/rtos/nuttx.c
@@ -312,7 +312,7 @@ static int nuttx_update_threads(struct rtos *rtos)
state = tcb.dat[state_offset - 8];
thread->extra_info_str = NULL;
- if (state < sizeof(task_state_str)/sizeof(char *)) {
+ if (state < ARRAY_SIZE(task_state_str)) {
thread->extra_info_str = malloc(256);
snprintf(thread->extra_info_str, 256, "pid:%d, %s",
tcb.dat[pid_offset - 8] |