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
3 changed files with 184 additions and 174 deletions
|
@ -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 a new issue