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) {