Skip to content

Commit

Permalink
fix: faulty strerror call (#286)
Browse files Browse the repository at this point in the history
strerror operates on errno values, not X error codes.
  • Loading branch information
N-R-K authored May 5, 2023
1 parent 74fc4da commit 724efba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scrot_selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void scrotSelectionGetLineColor(XColor *color)

if (!ret) {
scrotSelectionDestroy();
errx(EXIT_FAILURE, "Error allocate color:%s", strerror(BadColor));
errx(EXIT_FAILURE, "Error allocating color: %s", opt.lineColor);
}
}

Expand Down

0 comments on commit 724efba

Please sign in to comment.