Added malloc that got lost in previous commit.

DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-10-15 15:06:47 +00:00
rodzic 1247dc65b8
commit a4bcb6edea
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2002-10-15 Henning Meier-Geinitz <henning@meier-geinitz.de>
* src/preview.c: Added malloc that got lost in previous commit.
2002-09-30 Henning Meier-Geinitz <henning@meier-geinitz.de>
* src/preview.c: Avoid unaligned 1 bit previews. Fixed 1 bit color mode

Wyświetl plik

@ -888,7 +888,7 @@ scan_start (Preview *p)
if (p->image_height < 0)
p->image_height = 32; /* may have to adjust as we go... */
fprintf(stderr, "allocating %d bytes\n", 3*p->image_width*p->image_height);
p->image_data = malloc (p->image_width * p->image_height * 3);
if (!p->image_data)
{
snprintf (buf, sizeof (buf),