diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-09-03 14:00:32 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-09-04 15:05:17 +0200 |
commit | cae21d17ade360b9eb490f2f637bf8a583380364 (patch) | |
tree | d753e709df77752a0c18ca940eee2c3ce515354e | |
parent | 5d962bc718381dafd67d02714062a33060a0d449 (diff) | |
download | newlib-cae21d17ade360b9eb490f2f637bf8a583380364.zip newlib-cae21d17ade360b9eb490f2f637bf8a583380364.tar.gz newlib-cae21d17ade360b9eb490f2f637bf8a583380364.tar.bz2 |
MSP430: Fix calculation of string length in sbrk.c
-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 8e4339f..01d13b7 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 (); } |