* libexif/exif-data.c: Fill unneeded bytes with 0. Suggestion by
Roberto Costa <roberto.costa@ensta.org>.
+2003-08-25 Lutz Mueller <lutz@users.sourceforge.net>
+
+ * libexif/exif-data.c: Fill unneeded bytes with 0. Suggestion by
+ Roberto Costa <roberto.costa@ensta.org>.
+
2003-08-06 Lutz Mueller <lutz@users.sourceforge.net>
* libexif/exif-entry.c (exif_entry_initialize): Support some more
data->priv->order, doff);
} else
doff = offset + 8;
+
+ /* Write the data. Fill unneeded bytes with 0. */
memcpy (*d + 6 + doff, entry->data, entry->size);
+ if (s < 4) memset (*d + 6 + doff + s, 0, (4 - s));
}
static void