public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org 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: <20200904130533.B51DE398702F@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cae21d17ade360b9eb490f2f637bf8a583380364 commit cae21d17ade360b9eb490f2f637bf8a583380364 Author: Jozef Lawrynowicz <jozef.l@mittosystems.com> 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 (); }
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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200904130533.B51DE398702F@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe 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).