From a9cdd766c753ac864e132205f4cdda75ea8488bb Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 26 Apr 2023 00:47:39 -0400 Subject: [PATCH] fix off-by-one error --- bin/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/export.c b/bin/export.c index 36f0c45..a2537ae 100644 --- a/bin/export.c +++ b/bin/export.c @@ -61,7 +61,7 @@ int cammy_export(int argc, char **argv) { goto error_camera_open; } - if ((image = cammy_photo_export(&camera->data->photos[photo], + if ((image = cammy_photo_export(&camera->data->photos[photo-1], CAMMY_IMAGE_BITMAP, CAMMY_IMAGE_24BPP_RGB, palette)) == NULL) {