summaryrefslogtreecommitdiff
path: root/src/libexif
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-20 12:35:06 +0000
committerscuri <scuri>2009-08-20 12:35:06 +0000
commit5d735255ddd3cb2f547abd3d03969af3fb7eb04e (patch)
tree8fb66510bc625bb1b08ccb41f1b83fb0f7cb8f19 /src/libexif
parent35733b87eed86e5228f12fa10c98a3d9d22a6073 (diff)
*** empty log message ***
Diffstat (limited to 'src/libexif')
-rw-r--r--src/libexif/exif-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexif/exif-loader.c b/src/libexif/exif-loader.c
index 4e5b140..c62dcc8 100644
--- a/src/libexif/exif-loader.c
+++ b/src/libexif/exif-loader.c
@@ -270,7 +270,7 @@ exif_loader_write (ExifLoader *eld, unsigned char *buf, unsigned int len)
default:
switch (eld->b[i]) {
case JPEG_MARKER_APP1:
- if (!memcmp (eld->b + i + 3, ExifHeader, MIN((ssize_t)(sizeof(ExifHeader)), MAX(0, ((ssize_t)(sizeof(eld->b))) - ((ssize_t)i) - 3)))) {
+ if (!memcmp (eld->b + i + 3, ExifHeader, MIN((size_t)(sizeof(ExifHeader)), MAX(0, ((size_t)(sizeof(eld->b))) - ((size_t)i) - 3)))) {
eld->data_format = EL_DATA_FORMAT_EXIF;
} else {
eld->data_format = EL_DATA_FORMAT_JPEG; /* Probably JFIF - keep searching for APP1 EXIF*/