diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b96d3b05c..8c41e8ade 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1404,6 +1404,8 @@ static char *readline(FILE *fd) if (strlen == 0 && (c == '\t' || c == ' ')) /* Leading spaces away */ continue; + if (c == '\r') + continue; strptr[strlen++] = (char) c; if (strlen >= memlen) {