Revision 995179f1 block-dmg.c
b/block-dmg.c | ||
---|---|---|
109 | 109 |
/* read offsets */ |
110 | 110 |
last_in_offset = last_out_offset = 0; |
111 | 111 |
while(lseek(s->fd,0,SEEK_CUR)<info_end) { |
112 |
uint32_t type; |
|
113 |
|
|
112 | 114 |
count = read_uint32(s->fd); |
113 | 115 |
if(count==0) |
114 | 116 |
goto dmg_close; |
115 |
uint32_t type = read_uint32(s->fd);
|
|
117 |
type = read_uint32(s->fd); |
|
116 | 118 |
if(type!=0x6d697368 || count<244) |
117 | 119 |
lseek(s->fd,count-4,SEEK_CUR); |
118 | 120 |
else { |
Also available in: Unified diff