mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
MSP430: Fix calculation of string length in sbrk.c
This commit is contained in:
parent
5d962bc718
commit
cae21d17ad
@ -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 ();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user