fix off-by-one error
This commit is contained in:
parent
b202628d30
commit
a9cdd766c7
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue