(ia64_get_saved_register): Use alloca() to allocate register
buffers.
+ * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
+
2001-03-26 Kevin Buettner <kevinb@redhat.com>
* proc-utils.h (procfs_ctl_t): New typedef.
{
int mapbuf_allocation_size = 8192;
- char map_pathname[64];
+ char *map_pathname;
int map_fd;
/* Open the map file */
- xasprintf (map_pathname, "/proc/%d/map", pid);
+ xasprintf (&map_pathname, "/proc/%d/map", pid);
map_fd = open (map_pathname, O_RDONLY);
+ free (map_pathname);
if (map_fd < 0)
return 0;