exif: return correct buffer length, patch by wolfgang goetz