aboutsummaryrefslogtreecommitdiffstats
path: root/jpegtools.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-11-25 15:06:05 +0000
committerkraxel <kraxel>2004-11-25 15:06:05 +0000
commit8726dfa6bc7a0c816c041eaf983cd6348bd771b2 (patch)
treef1324527f4c390d17773b0035b93836e3cf2f49a /jpegtools.c
parentd5e14109e595c4dc20b44d42bec6ef409fdc873a (diff)
downloadfbida-8726dfa6bc7a0c816c041eaf983cd6348bd771b2.tar.gz
- fix segfault when generating thumbnails.
Diffstat (limited to 'jpegtools.c')
-rw-r--r--jpegtools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpegtools.c b/jpegtools.c
index 90ac7dd..2e84294 100644
--- a/jpegtools.c
+++ b/jpegtools.c
@@ -329,8 +329,8 @@ static void do_exif(struct jpeg_decompress_struct *src,
mark = src->mem->alloc_large((j_common_ptr)src,JPOOL_IMAGE,sizeof(*mark));
memset(mark,0,sizeof(*mark));
mark->marker = JPEG_APP0 +1;
- mark->next = src->marker_list->next;
- src->marker_list->next = mark;
+ mark->next = src->marker_list;
+ src->marker_list = mark;
}
if (ed->data)
free(ed->data);