plug-ins: don't say for(int x...) in file-pcx.c

This commit is contained in:
Michael Natterer 2017-06-29 18:39:41 +02:00
parent 5c8c30112a
commit 34485cff86
1 changed files with 2 additions and 1 deletions

View File

@ -937,10 +937,11 @@ save_less_than_8 (FILE *fp,
gint count = 0;
guchar byte_to_write = 0x00;
guchar *line;
gint x;
line = (guchar *) g_malloc (((width + 7) / 8) * bpp);
for (gint x = 0; x < buf_size; x++)
for (x = 0; x < buf_size; x++)
{
byte_to_write |= (buf[x] << j);
j -= bpp;