From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id B51DE398702F; Fri, 4 Sep 2020 13:05:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B51DE398702F Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] MSP430: Fix calculation of string length in sbrk.c X-Act-Checkin: newlib-cygwin X-Git-Author: Jozef Lawrynowicz X-Git-Refname: refs/heads/master X-Git-Oldrev: 5d962bc718381dafd67d02714062a33060a0d449 X-Git-Newrev: cae21d17ade360b9eb490f2f637bf8a583380364 Message-Id: <20200904130533.B51DE398702F@sourceware.org> Date: Fri, 4 Sep 2020 13:05:33 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2020 13:05:33 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cae21d17ade360b9eb490f2f637bf8a583380364 commit cae21d17ade360b9eb490f2f637bf8a583380364 Author: Jozef Lawrynowicz Date: Thu Sep 3 14:00:32 2020 +0100 MSP430: Fix calculation of string length in sbrk.c Diff: --- libgloss/msp430/sbrk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); }