bugfix: slave files smaller than master files caused a segfault.
[swftools.git] / src / combine.c
index 4847a58..34ea6b5 100644 (file)
@@ -84,7 +84,7 @@ void jpeg_assert()
        pos++;
     }
     pos = 0;
-    while(master.tags[pos].id != 0)
+    while(slave.tags[pos].id != 0)
     {
        if(slave.tags[pos].id == TAGID_JPEGTABLES)
            spos = pos;