mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-25 01:13:37 +08:00
2000-12-31 H.J. Lu <hjl@gnu.org>
* listing.c (listing_message): Allocate string only if it is used. * configure: Rebuild.
This commit is contained in:
parent
0fc3347a5c
commit
a735d1cdb9
@ -1,3 +1,10 @@
|
||||
2000-12-31 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* listing.c (listing_message): Allocate string only if it is
|
||||
used.
|
||||
|
||||
* configure: Rebuild.
|
||||
|
||||
2000-12-31 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* doc/internals.texi (Relaxing with a table) <after relaxation>:
|
||||
|
343
gas/configure
vendored
343
gas/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -226,12 +226,12 @@ listing_message (name, message)
|
||||
const char *name;
|
||||
const char *message;
|
||||
{
|
||||
unsigned int l = strlen (name) + strlen (message) + 1;
|
||||
char *n = (char *) xmalloc (l);
|
||||
strcpy (n, name);
|
||||
strcat (n, message);
|
||||
if (listing_tail != (list_info_type *) NULL)
|
||||
{
|
||||
unsigned int l = strlen (name) + strlen (message) + 1;
|
||||
char *n = (char *) xmalloc (l);
|
||||
strcpy (n, name);
|
||||
strcat (n, message);
|
||||
listing_tail->message = n;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user