Skip to content

Commit

Permalink
Fixes #4 - Arguments to the fprintfM() function were ordered incorrec…
Browse files Browse the repository at this point in the history
…tly, and this caused the --before and --context arguments to crash.
  • Loading branch information
JFLarvoire committed May 13, 2018
1 parent 9655af7 commit 84689d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void print_file_matches(const char *path, const char *buf, const size_t buf_len,
UINT cp = CP_UTF8;
if (enc == ENC_WIN_CP)
cp = CP_ACP;
fprintfM(out_fd, "%s\n", print_context.context_prev_lines[print_context.prev_line], cp);
fprintfM(cp, out_fd, "%s\n", print_context.context_prev_lines[print_context.prev_line]);
#endif
}
}
Expand Down

0 comments on commit 84689d4

Please sign in to comment.