Commit af9ccbbe authored by Jacob Boerema's avatar Jacob Boerema Committed by Jehan

plug-ins: fix reading of creator block data of PSP images.

Since string data in PSP images is not zero terminated
reading creator block data always failed.

(cherry picked from commit fcb9de07)
parent aa3d0540
......@@ -903,13 +903,8 @@ read_creator_block (FILE *f,
g_free (string);
return -1;
}
if (string[length - 1] != '\0')
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("Creator keyword data not nul-terminated"));
g_free (string);
return -1;
}
/* PSP does not zero terminate strings */
string[length] = '\0';
switch (keyword)
{
case PSP_CRTR_FLD_TITLE:
......
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