Changeset 550 in openpam for trunk/lib


Ignore:
Timestamp:
Apr 1, 2012, 8:45:19 PM (9 years ago)
Author:
Dag-Erling Smørgrav
Message:

Fix a bug detected by the unit tests: to ensure consistent handling of
trailing whitespace, openpam_readword() should *always* push back the
last character read (which is a no-op in the EOF case).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/openpam_readword.c

    r547 r550  
    119119                return (NULL);
    120120        }
    121         if (ch == '\n')
    122                 ungetc(ch, f);
     121        ungetc(ch, f);
    123122        if (lenp != NULL)
    124123                *lenp = len;
Note: See TracChangeset for help on using the changeset viewer.