From 66fd2d3272f87a270b5ea7972d64b0d3e6bb7098 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Thu, 9 Jun 2016 09:08:52 +0000 Subject: [PATCH] Correction to r4316 to deal with msvc build breaker. --- src/tiffimage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tiffimage.cpp b/src/tiffimage.cpp index 983744a1..a93e1421 100644 --- a/src/tiffimage.cpp +++ b/src/tiffimage.cpp @@ -585,13 +585,13 @@ namespace Exiv2 { IptcData::printStructure(out,bytes,count,depth); delete[] bytes; // free } else if ( option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) { - size_t jump=10; + size_t jump= 10 ; + byte bytes[20] ; + const char* chars = (const char*) &bytes[0] ; size_t restore = io.tell(); // save io.seek(offset,BasicIo::beg); // position - byte bytes[jump+1] ; - const char* chars = (const char*) &bytes ; io.read(bytes,jump ) ; // read - bytes[jump]=0; + bytes[jump]=0 ; if ( ::strcmp("Nikon",chars) == 0 ) { printTiffStructure(io,out,option,depth,offset+jump); }