Fix some more.
[pspp] / dump.c
diff --git a/dump.c b/dump.c
index 747c4206d3ee7ea1c2c5b3cc82349e2373abdb0f..e8f865062e58ccd6b5e47adec2e8377a1769f9dd 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -286,11 +286,23 @@ dump_value(int level)
       int subn;
       int total_subs = 1;
 
-      match_u32_assert (0);
-      match_u32_assert (0);
-      subn = get_u32 ();
-      printf ("nested %d bytes", subn);
-      pos += subn;
+      if (match_u32 (1))
+        {
+          printf("(footnote %d) ", get_u32());
+          match_byte_assert (0);
+          match_byte_assert (0);
+          int subn = get_u32 ();
+          printf ("nested %d bytes", subn);
+          pos += subn;
+        }
+      else
+        {
+          match_u32_assert (0);
+          match_u32_assert (0);
+          subn = get_u32 ();
+          printf ("nested %d bytes", subn);
+          pos += subn;
+        }
       printf ("; \"%s\", substitutions:", get_string());
       for (;;)
         {