summaryrefslogtreecommitdiff
path: root/miscutils/makedevs.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/makedevs.c')
-rw-r--r--miscutils/makedevs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index 1f88f34..43e4b8c 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -97,7 +97,7 @@ int makedevs_main(int argc, char **argv)
printf("table=<stdin>\n");
}
- while ((line = xmalloc_getline(table))) {
+ while ((line = xmalloc_fgetline(table)) != NULL) {
char type;
unsigned int mode = 0755;
unsigned int major = 0;