Update mls to use the new variable name
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 19 Jul 2024 23:49:28 +0000 (00:49 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 19 Jul 2024 23:49:28 +0000 (00:49 +0100)
mls.c

diff --git a/mls.c b/mls.c
index 5b1d9c6ff5828425417380aaf09de21dbbb3a34c..b8e311eb842fe8c07b59ccdeae264afaa188f35b 100644 (file)
--- a/mls.c
+++ b/mls.c
@@ -1047,7 +1047,7 @@ int main (int argc, char **argv) {
             timestamp = (unsigned short) de.date[0] | (((unsigned short) de.date[1]) << 8);
             printf ("    %04d-%02d-%02d", ((timestamp >> 9) & 0x3f) + 1980, (timestamp >> 5) & 0x0f, timestamp & 0x1f);
             
-            timestamp = (unsigned short) de.time[0] | (((unsigned short) de.time[1]) << 8);
+            timestamp = (unsigned short) de.xtime[0] | (((unsigned short) de.xtime[1]) << 8);
             printf ("    %02d:%02d:%02d", (timestamp >> 11) & 0x3f, (timestamp >> 5) & 0x3f, (timestamp & 0x1f) << 1);
             
             printf ("\n");