Thread: [Libiptcdata-devel] Bug in iptc_dataset_dump
Brought to you by:
dmoore
From: Roger H. <rog...@gm...> - 2009-02-03 01:25:15
Attachments:
smime.p7s
|
Whenever at tag without a known name is found, iptc_dataset_dump will try to pass NULL to printf. This is how I solved it (maybe just printing whitespace is enough...) *** libiptcdata-1.0.2/libiptcdata/iptc-dataset.c Mon Aug 29 04:27:41 2005 --- libiptcdata-1.0.2.new//libiptcdata/iptc-dataset.c Wed Oct 22 15:08:28 2008 *************** *** 589,595 **** return; printf ("%sTag: %d:%d ('%s')\n", buf, e->record, e->tag, ! iptc_tag_get_name (e->record, e->tag)); /* printf ("%s Format: %i ('%s')\n", buf, e->format, iptc_format_get_name (e->format)); */ printf ("%s Size: %i\n", buf, e->size); --- 589,595 ---- return; printf ("%sTag: %d:%d ('%s')\n", buf, e->record, e->tag, ! iptc_tag_get_name (e->record, e->tag) ? iptc_tag_get_name (e->record, e->tag) : "NULL"); /* printf ("%s Format: %i ('%s')\n", buf, e->format, iptc_format_get_name (e->format)); */ printf ("%s Size: %i\n", buf, e->size); |
From: David M. <dcm@MIT.EDU> - 2009-03-25 03:51:14
|
On Tue, 2009-02-03 at 02:25 +0100, Roger Håkansson wrote: > Whenever at tag without a known name is found, iptc_dataset_dump will > try to pass NULL to printf. > This is how I solved it (maybe just printing whitespace is enough...) > Hi Roger, Sorry for the late response, but I have committed a fix to CVS now. I will do a new release shortly. Thanks for the bug report. -David |