aboutsummaryrefslogtreecommitdiff
path: root/libgloss/msp430
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-03 14:00:32 +0100
committerCorinna Vinschen <corinna@vinschen.de>2020-09-04 15:05:17 +0200
commitcae21d17ade360b9eb490f2f637bf8a583380364 (patch)
treed753e709df77752a0c18ca940eee2c3ce515354e /libgloss/msp430
parent5d962bc718381dafd67d02714062a33060a0d449 (diff)
downloadnewlib-cae21d17ade360b9eb490f2f637bf8a583380364.zip
newlib-cae21d17ade360b9eb490f2f637bf8a583380364.tar.gz
newlib-cae21d17ade360b9eb490f2f637bf8a583380364.tar.bz2
MSP430: Fix calculation of string length in sbrk.c
Diffstat (limited to 'libgloss/msp430')
-rw-r--r--libgloss/msp430/sbrk.c2
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 ();
}