Browse Source

ctypes fix

So some unixes in ctype consider newline a space, for instance my
Linux here, but other platforms don't.
To make sure it works everywhere, we explicitely exclude newline.
master
David Lanzendörfer 12 months ago
parent
commit
b06ad20094
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/reader.c

+ 2
- 2
src/reader.c View File

@ -483,7 +483,7 @@ eat_whitespace(pgp_stream_t *stream, int first,
{
int c = first;
while (isspace(c)) {
while (isspace(c)&&c!='\n') {
c = read_char(stream, dearmour, errors, readinfo, cbinfo, skip);
}
return c;
@ -500,7 +500,7 @@ read_and_eat_whitespace(pgp_stream_t *stream, dearmour_t *dearmour,
do {
c = read_char(stream, dearmour, errors, readinfo, cbinfo, skip);
} while (isspace(c));
} while (isspace(c)&&c!='\n');
return c;
}


Loading…
Cancel
Save