mirror of
https://github.com/Motion-Project/motion.git
synced 2026-06-11 23:34:36 -04:00
Force null terminator when writing description string into EXIF
Fixes #833
This commit is contained in:
@@ -344,7 +344,7 @@ static unsigned prepare_exif(unsigned char **exif,
|
||||
writing.buf += 2;
|
||||
|
||||
if (description)
|
||||
put_stringentry(&writing, TIFF_TAG_IMAGE_DESCRIPTION, description, 0);
|
||||
put_stringentry(&writing, TIFF_TAG_IMAGE_DESCRIPTION, description, 1);
|
||||
|
||||
if (datetime)
|
||||
put_stringentry(&writing, TIFF_TAG_DATETIME, datetime, 1);
|
||||
|
||||
Reference in New Issue
Block a user