From 5ee70c548708d39dabdb595d54029cf762e2d4c4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 30 Jul 2019 06:24:00 +0200 Subject: Add and use THREAD_DEFAULT_MAXIMUM_NAME_SIZE --- cpukit/libmisc/stackchk/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libmisc/stackchk/check.c') diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c index a3f9a1d21e..3b8cf69a12 100644 --- a/cpukit/libmisc/stackchk/check.c +++ b/cpukit/libmisc/stackchk/check.c @@ -250,7 +250,7 @@ static void Stack_check_report_blown_task( { const Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern(stack); - char name[32]; + char name[2 * THREAD_DEFAULT_MAXIMUM_NAME_SIZE]; printk("BLOWN STACK!!!\n"); printk("task control block: 0x%08" PRIxPTR "\n", (intptr_t) running); -- cgit v1.2.3