mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
...
This commit is contained in:
@@ -209,7 +209,7 @@ inflate_png_inner(struct png_jmp_data *d, uint8_t *buf, size_t bufsz) {
|
|||||||
struct fake_file f = {.buf = buf, .sz = bufsz};
|
struct fake_file f = {.buf = buf, .sz = bufsz};
|
||||||
png_structp png = NULL;
|
png_structp png = NULL;
|
||||||
png_infop info = NULL;
|
png_infop info = NULL;
|
||||||
static jmp_buf jb;
|
jmp_buf jb;
|
||||||
png = png_create_read_struct(PNG_LIBPNG_VER_STRING, &jb, read_png_error_handler, read_png_warn_handler);
|
png = png_create_read_struct(PNG_LIBPNG_VER_STRING, &jb, read_png_error_handler, read_png_warn_handler);
|
||||||
if (!png) ABRT(ENOMEM, "Failed to create PNG read structure");
|
if (!png) ABRT(ENOMEM, "Failed to create PNG read structure");
|
||||||
info = png_create_info_struct(png);
|
info = png_create_info_struct(png);
|
||||||
|
|||||||
Reference in New Issue
Block a user