public inbox for
help / color / mirror / Atom feed
From: Corinna Vinschen <>
Subject: [newlib-cygwin] MSP430: Fix calculation of string length in sbrk.c
Date: Fri,  4 Sep 2020 13:05:33 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);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

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

                 reply	other threads:[~2020-09-04 13:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).