whitespace fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5142 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-11-09 16:57:20 +00:00
parent 901c1de757
commit eeac1f9bbc
3 changed files with 8 additions and 1 deletions

View file

@ -181,10 +181,12 @@ o_vscanf (void *stream,
if (isspace(fc))
{
/* Whitespace characters match any amount of whitespace. */
while (isspace (c))
while (isspace (c) && c != '\n')
inchar ();
continue;
}
else if (c == fc && *f == '\0')
continue;
else if (c == fc)
(void) inchar();
else