diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-09-03 16:00:32 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-09-04 16:05:17 +0300 |
commit | cae21d17ade360b9eb490f2f637bf8a583380364 (patch) | |
tree | d753e709df77752a0c18ca940eee2c3ce515354e /libgloss | |
parent | 5d962bc718381dafd67d02714062a33060a0d449 (diff) |
MSP430: Fix calculation of string length in sbrk.c
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/msp430/sbrk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); } |