Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 664270
Collapse All | Expand All

(-)splashutils-1.5.4.4/src/image.c.orig (-1 / +1 lines)
Lines 101-107 Link Here
101
		*height = png_get_image_height(png_ptr, info_ptr);
101
		*height = png_get_image_height(png_ptr, info_ptr);
102
	}
102
	}
103
103
104
	*data = malloc(theme->xres * theme->yres * fbd.bytespp);
104
	*data = malloc(bytespp * (*height) * (*width));
105
	if (!*data) {
105
	if (!*data) {
106
		iprint(MSG_CRITICAL, "Failed to allocate memory for image: %s.\n", filename);
106
		iprint(MSG_CRITICAL, "Failed to allocate memory for image: %s.\n", filename);
107
		return -4;
107
		return -4;

Return to bug 664270