public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] MSP430: Fix calculation of string length in sbrk.c
@ 2020-09-04 13:05 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-09-04 13:05 UTC (permalink / raw)
  To: newlib-cvs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-04 13:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04 13:05 [newlib-cygwin] MSP430: Fix calculation of string length in sbrk.c Corinna Vinschen

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).