Skip to content

Commit

Permalink
Skip past carriage-returns in getArgument for ice-wm/icewm#186.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 25, 2025
1 parent 3de1b85 commit 5f45f31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/yconfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ char *YConfig::getArgument(Argument *dest, char *source, bool comma) {
++p;
*dest += *p;
}
else if (ASCII::isWhiteSpace(*p) || (*p == ',' && comma))
break;
else if (ASCII::isWhiteSpace(*p) || (*p == ',' && comma)) {
if (*p == '\r')
continue;
else
break;
}
else {
*dest += *p;
}
Expand Down

0 comments on commit 5f45f31

Please sign in to comment.