+ if (offbits > base_offset) {
+ /* this will be slow if the offset is large, but that should be
+ rare */
+ char buffer;
+ while (base_offset < offbits) {
+ if (ig->readcb(ig, &buffer, 1) != 1) {
+ i_img_destroy(im);
+ i_push_error(0, "failed skipping to image data offset");
+ return NULL;
+ }
+ ++base_offset;
+ }
+ }
+
+ line = mymalloc(line_size); /* checked 29jun05 tonyc */