File orbit-1.01-strict_aliasing.patch of Package orbital
--- src/log.c
+++ src/log.c
@@ -67,11 +67,13 @@
va_list ap;
int tm;
char buf[64];
+ time_t * ptr_tmp;
tm = time (NULL);
+ ptr_tmp = &tm;
va_start (ap, fmt);
- strcpy (buf, ctime((const time_t *)&tm));
+ strcpy (buf, ctime(ptr_tmp));
buf[strlen(buf)-1] = 0;
fprintf (logfd, "%s: ", buf);
vfprintf (logfd, fmt, ap);
--- src/save.c
+++ src/save.c
@@ -175,13 +175,15 @@
/* Construct the selection list */
strcpy (buf, "Select mission to load:\\\\");
+ time_t * ptr_tmp;
for (s=0; s<nsaves; s++)
{
sprintf (buf2, "%d) ", s);
strcat (buf, buf2);
strcat (buf, save[s].fn);
strcat (buf, " ");
- sprintf (buf2, "%s", ctime((const time_t *)&save[s].time));
+ ptr_tmp = &save[s].time;
+ sprintf (buf2, "%s", ctime(ptr_tmp));
strcat (buf, buf2);
strcat (buf, "\\");
}