--- gqview-1.3.7.old/src/exif.c 2003-12-27 23:47:50.000000000 +0100 +++ gqview-1.3.7/src/exif.c 2003-12-27 23:54:36.000000000 +0100 @@ -853,8 +853,16 @@ */ !(marker->format == EXIF_FORMAT_LONG_UNSIGNED && ent->format == EXIF_FORMAT_SHORT_UNSIGNED) ) { - printf("warning: exif tag %s format mismatch, found %s exif spec requests %s\n", - marker->key, ExifFormatList[ent->format].short_name, ExifFormatList[marker->format].short_name); + if (ent->format <= EXIF_FORMAT_DOUBLE) + { + printf("warning: exif tag %s format mismatch, found %s exif spec requests %s\n", + marker->key, ExifFormatList[ent->format].short_name, ExifFormatList[marker->format].short_name); + } + else + { + printf("warning: exif tag %s format mismatch, found unknown format value %d exif spec requests %s\n", + marker->key, ent->format, ExifFormatList[marker->format].short_name); + } return 0; } }