Bug 585665 – Exporting to PSD with a blank text layer creates a corrupt file

Use write_gchar() to write an empty string, not write_gint16().
This commit is contained in:
Massimo Valentini 2009-07-16 22:21:40 +02:00 committed by Sven Neumann
parent fc66ca5169
commit 48a6b0c59c
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ write_pascalstring (FILE *fd,
}
else
{
write_gint16 (fd, 0, why);
write_gchar (fd, 0, why);
}
/* If total length (length byte + content) is not a multiple of PADDING,