diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp index 1308839d..b98693be 100644 --- a/src/tiffimage.cpp +++ b/src/tiffimage.cpp @@ -593,7 +593,12 @@ namespace Exiv2 { io.read(bytes,jump ) ; // read bytes[jump]=0 ; if ( ::strcmp("Nikon",chars) == 0 ) { - printTiffStructure(io,out,option,depth,(size_t)(offset+jump)); + // tag is an embedded tiff + byte* bytes=new byte[count-jump] ; // allocate memory + io.read(bytes,count-jump) ; // read + MemIo memIo(bytes,count-jump) ; // create a file + printTiffStructure(memIo,out,option,depth); + delete[] bytes ; // free } io.seek(restore,BasicIo::beg); // restore } diff --git a/test/data/bugfixes-test.out b/test/data/bugfixes-test.out index 40f6f274..823584c6 100644 Binary files a/test/data/bugfixes-test.out and b/test/data/bugfixes-test.out differ