* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
authorRichard Henderson <rth@redhat.com>
Thu, 25 Oct 2001 06:33:56 +0000 (06:33 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 25 Oct 2001 06:33:56 +0000 (06:33 +0000)
        timestamp to time_t for ctime.

bfd/ChangeLog
bfd/peXXigen.c

index e41c153666e8f0eecbb8ffbdc9bb4eb02717490f..ae6e1b896dfb89ec8590d636e33a27c77d78df2b 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-24  Richard Henderson  <rth@redhat.com>
+
+       * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
+       timestamp to time_t for ctime.
+
 2001-10-24  Hans-Peter Nilsson  <hp@axis.com>
 
        * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
index cc2a5efae944e49ec28bdac12ac59a76a6f5e3b0..37f4d1a071d6d27145b5160ccf41fe4c34073e0d 100644 (file)
@@ -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");