aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-08-22 17:05:40 +0000
committerNick Clifton <nickc@redhat.com>2008-08-22 17:05:40 +0000
commit34857dd609e4ceeb141564fb471ec65520db97ee (patch)
treec030aa1e975ba412cd6c87c64d56bdcd738247c8 /gas
parent25db0f1bf5952f37770750ad364d7e191a031458 (diff)
downloadgdb-34857dd609e4ceeb141564fb471ec65520db97ee.zip
gdb-34857dd609e4ceeb141564fb471ec65520db97ee.tar.gz
gdb-34857dd609e4ceeb141564fb471ec65520db97ee.tar.bz2
* config/tc-mcore.c (md_assemble): Increase length of name array
to include terminating NUL.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mcore.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5ab7202..b380322 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-22 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-mcore.c (md_assemble): Increase length of name array
+ to include terminating NUL.
+
2008-08-22 Jie Zhang <jie.zhang@analog.com>
* config/bfin-lex.l (NUMBER): Protect special `.'.
diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c
index 73307b1..c7c024e 100644
--- a/gas/config/tc-mcore.c
+++ b/gas/config/tc-mcore.c
@@ -859,7 +859,7 @@ md_assemble (char * str)
unsigned off;
unsigned isize;
expressionS e;
- char name[20];
+ char name[21];
/* Drop leading whitespace. */
while (ISSPACE (* str))