Commit 8421221b authored by Michael Natterer's avatar Michael Natterer 😴

Issue #2388 - CRITICAL: XMP Toolkit error 4: Invalid UTF-8 data byte

In gimp_metadata_add_xmp_history(), make sure the string returned by
strftime() has a terminating \0 after we mess with its format.
parent 2880f080
......@@ -415,6 +415,7 @@ gimp_metadata_add_xmp_history (GimpMetadata *metadata,
/* get timezone and fix format */
strftime (tzstr, 7, "%z", now_tm);
tzstr[6] = '\0';
tzstr[5] = tzstr[4];
tzstr[4] = tzstr[3];
tzstr[3] = ':';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment