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 | 0b6488e20b25d135b430a3cc920fe02bec3b84b3 (patch) | |
tree | 9688ad7cd4169290c0789a17eea8006a675b1b73 /bfd/peXXigen.c | |
parent | 67605879b9fcc8b96c9380a737eb7dab3cee547e (diff) | |
download | gdb-0b6488e20b25d135b430a3cc920fe02bec3b84b3.zip gdb-0b6488e20b25d135b430a3cc920fe02bec3b84b3.tar.gz gdb-0b6488e20b25d135b430a3cc920fe02bec3b84b3.tar.bz2 |
* 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 cc2a5ef..37f4d1a 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"); |