Skip to content

Commit

Permalink
Bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Jul 16, 2022
1 parent fbcc017 commit cae8687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpymo/cpymo_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void cpymo_utils_replace_cr(char *text, size_t len)
for (size_t i = 0; i < len; ++i) {
if (text[i] == '\r') {
if (i + 1 < len) {
if (text[i] != '\n') { REPLACE; }
if (text[i + 1] != '\n') { REPLACE; }
}
else {
REPLACE;
Expand Down

0 comments on commit cae8687

Please sign in to comment.