summaryrefslogtreecommitdiffstats
path: root/camera/OMXCameraAdapter/OMXExif.cpp
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-10-25 03:09:39 -0500
committerEd Heyl <ed@google.com>2011-10-25 20:40:21 +0000
commitfac6d88a15b2e4ff329da2c66ba54837361ddc10 (patch)
tree12911dbde07c7c2b037bd3750bc00784260e2da3 /camera/OMXCameraAdapter/OMXExif.cpp
parent55fe3ce42d0c5c2619ae0cf2b17180db1c810877 (diff)
downloadhardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.zip
hardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.tar.gz
hardware_ti_omap4xxx-fac6d88a15b2e4ff329da2c66ba54837361ddc10.tar.bz2
Fix garbled characters at the end of Exif Make/Model
bug:5481563 Change-Id: Idce652daf7d6164ad84695cc76c358757b5c7b37 Signed-off-by: Tyler Luu <tluu@ti.com>
Diffstat (limited to 'camera/OMXCameraAdapter/OMXExif.cpp')
-rwxr-xr-xcamera/OMXCameraAdapter/OMXExif.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/OMXCameraAdapter/OMXExif.cpp b/camera/OMXCameraAdapter/OMXExif.cpp
index 1caeba9..9744cf4 100755
--- a/camera/OMXCameraAdapter/OMXExif.cpp
+++ b/camera/OMXCameraAdapter/OMXExif.cpp
@@ -297,8 +297,8 @@ status_t OMXCameraAdapter::setupEXIF()
EXIF_MODEL_SIZE - 1);
exifTags->pModelBuff = ( OMX_S8 * ) ( sharedPtr - sharedBuffer.pSharedBuff );
+ exifTags->ulModelBuffSizeBytes = strlen((char*)sharedPtr) + 1;
sharedPtr += EXIF_MODEL_SIZE;
- exifTags->ulModelBuffSizeBytes = EXIF_MODEL_SIZE;
exifTags->eStatusModel = OMX_TI_TagUpdated;
}
@@ -310,8 +310,8 @@ status_t OMXCameraAdapter::setupEXIF()
EXIF_MAKE_SIZE - 1);
exifTags->pMakeBuff = ( OMX_S8 * ) ( sharedPtr - sharedBuffer.pSharedBuff );
+ exifTags->ulMakeBuffSizeBytes = strlen((char*)sharedPtr) + 1;
sharedPtr += EXIF_MAKE_SIZE;
- exifTags->ulMakeBuffSizeBytes = EXIF_MAKE_SIZE;
exifTags->eStatusMake = OMX_TI_TagUpdated;
}