diff --git a/plug-ins/file-psd/psd-util.c b/plug-ins/file-psd/psd-util.c index 761865e7af..545bd32f7c 100644 --- a/plug-ins/file-psd/psd-util.c +++ b/plug-ins/file-psd/psd-util.c @@ -583,6 +583,7 @@ decode_packbits (const gchar *src, { IFDBG(2) g_debug ("Overrun in packbits replicate of %d chars", n - unpack_left); error_code = 2; + break; } memset (dst, *src, n); src++;