Package: acm
Followup-For: Bug #1067623
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch
Control: tags -1 patch

Please find attached a patch for this issue which has been uploaded to
Ubuntu.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru acm-6.0+20200416/debian/patches/64-bit-time-t.patch 
acm-6.0+20200416/debian/patches/64-bit-time-t.patch
--- acm-6.0+20200416/debian/patches/64-bit-time-t.patch 1969-12-31 
16:00:00.000000000 -0800
+++ acm-6.0+20200416/debian/patches/64-bit-time-t.patch 2024-04-12 
17:30:16.000000000 -0700
@@ -0,0 +1,22 @@
+Description: use 64-bit-safe format string for time_t
+Author: Steve Langasek <steve.langa...@canonical.com>
+Bug-Debian: https://bugs.debian.org/1067623
+Last-Update: 2024-04-12
+Forwarded: no
+
+Index: acm-6.0+20200416/src/dis/test/disscope.c
+===================================================================
+--- acm-6.0+20200416.orig/src/dis/test/disscope.c
++++ acm-6.0+20200416/src/dis/test/disscope.c
+@@ -239,8 +239,9 @@
+               printf ("    Family       %d\n", pdu.hdr.protocol_family);
+               printf ("    Exercise id  %d\n", pdu.hdr.exercise_id);
+               dis_timestampToTimeval (&pdu.hdr.time_stamp, &tm);
+-              printf ("    Time stamp   %ld.%ld\n", tm.tv_sec,
+-                      tm.tv_usec / 1000);
++              printf ("    Time stamp   %lld.%lld\n",
++                      (long long int)tm.tv_sec,
++                      (long long int)tm.tv_usec / 1000);
+               switch (pdu.hdr.pdu_type) {
+               case PDUTypeEntityState:
+                   printf ("    Entity (sim.app.eid) : %d/%d/%d\n",
diff -Nru acm-6.0+20200416/debian/patches/series 
acm-6.0+20200416/debian/patches/series
--- acm-6.0+20200416/debian/patches/series      2022-10-17 08:51:57.000000000 
-0700
+++ acm-6.0+20200416/debian/patches/series      2024-04-12 17:28:43.000000000 
-0700
@@ -4,3 +4,4 @@
 fix_paths_in_acm_tcl.patch
 hardening1.patch
 fix_buffer_size.patch
+64-bit-time-t.patch

Reply via email to