diff options
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_files/files-XXX.c | 2 | ||||
-rw-r--r-- | nss/nsswitch.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/nss/nss_files/files-XXX.c b/nss/nss_files/files-XXX.c index d6a7911b66..9432b14b34 100644 --- a/nss/nss_files/files-XXX.c +++ b/nss/nss_files/files-XXX.c @@ -181,7 +181,7 @@ internal_getent (struct STRUCTURE *result, /* Terminate the line so that we can test for overflow. */ data->linebuffer[linebuflen - 1] = '\xff'; - p = fgets (data->linebuffer, linebuflen, stream); + p = fgets_unlocked (data->linebuffer, linebuflen, stream); if (p == NULL) { /* End of file or read error. */ diff --git a/nss/nsswitch.c b/nss/nsswitch.c index f010d2755c..644343a030 100644 --- a/nss/nsswitch.c +++ b/nss/nsswitch.c @@ -536,7 +536,7 @@ nss_parse_file (const char *fname) last = this; } } - while (!feof (fp)); + while (!feof_unlocked (fp)); /* Free the buffer. */ free (line); |