aboutsummaryrefslogtreecommitdiff
path: root/src/zebra.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zebra.c')
-rw-r--r--src/zebra.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zebra.c b/src/zebra.c
index a3a068f..5e02310 100644
--- a/src/zebra.c
+++ b/src/zebra.c
@@ -187,6 +187,7 @@ static int rewrite_links(zebraFile *z)
offset = z->lr_offset*4;
+ z->mast_bank = -1;
while (offset < z->lr_size) {
io = unpacki32(z->buf+offset);
offset += 4;
@@ -199,6 +200,12 @@ static int rewrite_links(zebraFile *z)
rv = zebra_get_bank(z, &b, offset/4);
+ if (!strncmp(b.name,"MAST",4)) {
+ if (z->mast_bank != -1)
+ fprintf(stderr, "Warning: found more than one MAST bank in a single logical record!\n");
+ z->mast_bank = offset/4;
+ }
+
if (rv) return rv;
/* Rewrite the next, up, and orig pointers. */