diff options
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r-- | bfd/vms-alpha.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 404638c..3375230 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -7511,6 +7511,8 @@ evax_bfd_print_dst (struct bfd *abfd, unsigned int dst_size, FILE *file) /* xgettext:c-format */ fprintf (file, _(" type: %3u, len: %3u (at 0x%08x): "), type, len, off); + if (len > dst_size) + len = dst_size; if (len < sizeof (dsth)) { fputc ('\n', file); |