* symtab.c (search_symbols): Make sure alloca size is big enough.
+2001-12-03 Michael Snyder <msnyder@redhat.com>
+
+ * symtab.c (search_symbols): Make sure alloca size is big enough.
+
2001-12-03 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Prune m68k targets down to just m68k-elf.
/* If wrong number of spaces, fix it. */
if (fix >= 0)
{
- char *tmp = (char *) alloca (strlen (regexp) + fix);
+ char *tmp = (char *) alloca (8 + fix + strlen (opname) + 1);
sprintf (tmp, "operator%.*s%s", fix, " ", opname);
regexp = tmp;
}