4
0
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:
Jozef Lawrynowicz 2020-09-03 14:00:32 +01:00 committed by Corinna Vinschen
parent 5d962bc718
commit cae21d17ad

View File

@ -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 ();
}