From 592045db60aa590c25ce0034b4ea8ba9ad419856 Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Wed, 15 Jul 2026 01:35:10 -0400 Subject: [PATCH] Trying to import name, though it might fail becuase its a pointer --- src/imgio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/imgio.c b/src/imgio.c index 15fc6f2..ebe4222 100644 --- a/src/imgio.c +++ b/src/imgio.c @@ -216,7 +216,8 @@ transcode_to_ppm(JPEG* input, PPM* out) PPM inherit_from_jpeg(const JPEG* in, const char fmt) { - PPM image = { .width = in->width, + PPM image = { .name = in->name, + .width = in->width, .height = in->height, .len = in->len, .fmt = fmt }; @@ -227,6 +228,7 @@ JPEG inherit_from_ppm(const PPM* in) { JPEG image = { + .name = in->name, .width = in->width, .height = in->height, .len = in->len, @@ -236,8 +238,8 @@ inherit_from_ppm(const PPM* in) /** The Second image gets merged into the first. * The First image obtains attributes from the second image that were not found. -*/ + */ // PPM // merge_ppm(const PPM* in_1, const PPM* in_2) { -// if(in) +// if(in) // }