Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubund committed Jan 10, 2015
1 parent cc5e66e commit 087a6d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fileread.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void mrtd_fileread_write_image_to_file(const uint8_t *file_content, const int fi
if(strlen(filename) > 3 && filename[strlen(filename)-4] == '.')
baselength = strlen(filename)-4;
else
baselength = strlen(filename)-1;
baselength = strlen(filename);
memcpy(filenamebuf, filename, baselength);
if(filetype == 0x00)
memcpy(filenamebuf+baselength,".jpg",4);
Expand Down
2 changes: 1 addition & 1 deletion src/mrtdreader.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int main(int argc, char **argv)
printf(" done\n");


mrtd_fileread_write_image_to_file(filecontent, filecontentlength, "image.jpg");
mrtd_fileread_write_image_to_file(filecontent, filecontentlength, "image");

nfc_close(pnd);
nfc_exit(context);
Expand Down

0 comments on commit 087a6d5

Please sign in to comment.