fix off-by-one error

This commit is contained in:
XANTRONIX Development 2023-04-26 00:47:39 -04:00
parent b202628d30
commit a9cdd766c7

View file

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