From 5fef946de3f6d003983f726655cf48415497a3c8 Mon Sep 17 00:00:00 2001 From: Andrew Haynes Date: Wed, 15 Jul 2026 01:16:05 -0400 Subject: [PATCH] Removing multiplication breaking attributes --- src/imgio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imgio.c b/src/imgio.c index 85f794b..15fc6f2 100644 --- a/src/imgio.c +++ b/src/imgio.c @@ -218,7 +218,7 @@ inherit_from_jpeg(const JPEG* in, const char fmt) { PPM image = { .width = in->width, .height = in->height, - .len = in->width * in->height, + .len = in->len, .fmt = fmt }; return image; } @@ -229,7 +229,7 @@ inherit_from_ppm(const PPM* in) JPEG image = { .width = in->width, .height = in->height, - .len = in->width * in->height, + .len = in->len, }; return image; }