diff options
author | Kevin Buettner <kevinb@redhat.com> | 2001-03-27 06:23:25 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2001-03-27 06:23:25 +0000 |
commit | 6c06bb9574a4ed05d5fecb169b20c72246c2a1b8 (patch) | |
tree | db00ad6dcfbb564adc60a64f25bff668a1b1f2af /gdb/solib-aix5.c | |
parent | f03752966d07ccd1946508911ddefcca2e971cfb (diff) | |
download | gdb-6c06bb9574a4ed05d5fecb169b20c72246c2a1b8.tar.gz |
* solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
Diffstat (limited to 'gdb/solib-aix5.c')
-rw-r--r-- | gdb/solib-aix5.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/solib-aix5.c b/gdb/solib-aix5.c index 9207c214490..0d908770d8b 100644 --- a/gdb/solib-aix5.c +++ b/gdb/solib-aix5.c @@ -193,13 +193,14 @@ build_so_list_from_mapfile (int pid, long match_mask, long match_val) { 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; |