Skip to content

Commit

Permalink
nfc-relay-picc: fix wrong open mode for file descriptor
Browse files Browse the repository at this point in the history
Fixes #280
  • Loading branch information
neomilium committed Apr 30, 2015
1 parent 8fbedb8 commit 33ce39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nfc-relay-picc.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ main(int argc, char *argv[])
nfc_exit(context);
exit(EXIT_FAILURE);
}
if ((fd4 = fdopen(4, "r")) == NULL) {
if ((fd4 = fdopen(4, "w")) == NULL) {
ERR("Could not open file descriptor 4");
nfc_exit(context);
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 33ce39f

Please sign in to comment.