1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-25 02:41:45 +02:00

(tdep_get_elf_image): Pass sizeof buffer to maps_next().

(Logical change 1.199)
This commit is contained in:
mostang.com!davidm 2004-03-31 07:38:06 +00:00
parent 64c702cea7
commit df77cf1ad7

View file

@ -1,5 +1,5 @@
/* libunwind - a platform-independent unwind library
Copyright (C) 2003 Hewlett-Packard Co
Copyright (C) 2003-2004 Hewlett-Packard Co
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of libunwind.
@ -42,7 +42,7 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
unsigned long hi;
maps_init (&mi, pid);
while (maps_next (&mi, segbase, &hi, mapoff, path))
while (maps_next (&mi, segbase, &hi, mapoff, path, sizeof (path)))
if (ip >= *segbase && ip < hi)
{
found = 1;