kopia lustrzana https://gitlab.com/sane-project/frontends
Added malloc that got lost in previous commit.
rodzic
1247dc65b8
commit
a4bcb6edea
|
@ -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>
|
2002-09-30 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||||
|
|
||||||
* src/preview.c: Avoid unaligned 1 bit previews. Fixed 1 bit color mode
|
* src/preview.c: Avoid unaligned 1 bit previews. Fixed 1 bit color mode
|
||||||
|
|
|
@ -888,7 +888,7 @@ scan_start (Preview *p)
|
||||||
if (p->image_height < 0)
|
if (p->image_height < 0)
|
||||||
p->image_height = 32; /* may have to adjust as we go... */
|
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)
|
if (!p->image_data)
|
||||||
{
|
{
|
||||||
snprintf (buf, sizeof (buf),
|
snprintf (buf, sizeof (buf),
|
||||||
|
|
Ładowanie…
Reference in New Issue