From 32a56f154205b179512cfab2a7523fb855898a8a Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Thu, 3 Sep 2020 14:00:32 +0100 Subject: [PATCH] MSP430: Fix calculation of string length in sbrk.c --- libgloss/msp430/sbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgloss/msp430/sbrk.c b/libgloss/msp430/sbrk.c index 8e4339f6e..01d13b792 100644 --- a/libgloss/msp430/sbrk.c +++ b/libgloss/msp430/sbrk.c @@ -24,7 +24,7 @@ _sbrk (int adj) if (heap + adj > sp) { - const char * const msg = "Heap and stack collision\n"; + const char msg[] = "Heap and stack collision\n"; write (1, msg, sizeof (msg) - 1); abort (); } -- 2.28.0