(getttyent): Use fgets_unlocked instead of fgets.
authordrepper <drepper>
Sun, 5 Jul 1998 11:59:01 +0000 (11:59 +0000)
committerdrepper <drepper>
Sun, 5 Jul 1998 11:59:01 +0000 (11:59 +0000)
misc/getttyent.c

index f474cdc..07018f7 100644 (file)
@@ -73,7 +73,7 @@ getttyent()
                return (NULL);
        flockfile (tf);
        for (;;) {
-               if (!fgets(p = line, sizeof(line), tf))
+               if (!fgets_unlocked(p = line, sizeof(line), tf))
                        return (NULL);
                /* skip lines that are too big */
                if (!index(p, '\n')) {