Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-03 16:00:32 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-09-04 16:05:17 +0300
commitcae21d17ade360b9eb490f2f637bf8a583380364 (patch)
treed753e709df77752a0c18ca940eee2c3ce515354e /libgloss/msp430
parent5d962bc718381dafd67d02714062a33060a0d449 (diff)
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 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 ();
}