]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
authorRichard Henderson <rth@redhat.com>
Thu, 25 Oct 2001 06:33:31 +0000 (06:33 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 25 Oct 2001 06:33:31 +0000 (06:33 +0000)
        timestamp to time_t for ctime.

bfd/ChangeLog
bfd/peXXigen.c

index 8092dbf24398a82d6ed5f6a7407db4c47c0593cd..d782ee51cc051d79c991ae9fd9a45967e532d0ef 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  Richard Henderson  <rth@redhat.com>
 
        2001-08-23  Jakub Jelinek  <jakub@redhat.com>
index 0e1eaeac53610e93caa44a5029cff4e9628236b2..a3141ba587a92ecc96cb2e407b038ed2b4d8ec71 100644 (file)
@@ -1825,7 +1825,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");