Commit 4e103be4 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

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.

(cherry picked from commit 8421221b)
parent 7dc96c8f
......@@ -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