Skip to content

Commit

Permalink
fix issue#4: fwrite if condition always false
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Jul 10, 2013
1 parent 80c879c commit 9aeac63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ main(int argc, const char *argv[])

} else {

if (fwrite(ob->data, sizeof(uint8_t), ob->size, fp) < 0 ) {
if (fwrite(ob->data, sizeof(uint8_t), ob->size, fp) != ob->size ) {
printf("failed to write '%s'\n", todo_txt);
rt = RE_IO_ERROR;
}
Expand Down

0 comments on commit 9aeac63

Please sign in to comment.