diff options
author | Richard Henderson <rth@redhat.com> | 2001-10-25 06:33:56 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2001-10-25 06:33:56 +0000 |
commit | b38e1c622d0deaf943f8a7b47c1dad5a6eeea2d2 (patch) | |
tree | 9efdbce910f77054636b4a60ffcb538a59d20980 /bfd/peXXigen.c | |
parent | a3de0e6e5694f49ea169134d7e5d5952b2793518 (diff) | |
download | gdb-b38e1c622d0deaf943f8a7b47c1dad5a6eeea2d2.tar.gz |
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
timestamp to time_t for ctime.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index cc2a5efae94..37f4d1a071d 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1767,7 +1767,10 @@ _bfd_XX_print_private_bfd_data_common (abfd, vfile) #undef PF /* ctime implies '\n'. */ - fprintf (file, "\nTime/Date\t\t%s", ctime (&pe->coff.timestamp)); + { + time_t t = pe->coff.timestamp; + fprintf (file, "\nTime/Date\t\t%s", ctime (&t)); + } fprintf (file, "\nImageBase\t\t"); fprintf_vma (file, i->ImageBase); fprintf (file, "\nSectionAlignment\t"); |