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:
H.J. Lu 2001-01-01 01:51:17 +00:00
parent 0fc3347a5c
commit a735d1cdb9
3 changed files with 184 additions and 174 deletions

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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;
}
}