summaryrefslogtreecommitdiff
path: root/libc/inet/getnetent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/getnetent.c')
-rw-r--r--libc/inet/getnetent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/inet/getnetent.c b/libc/inet/getnetent.c
index 58e679070..99d87a3df 100644
--- a/libc/inet/getnetent.c
+++ b/libc/inet/getnetent.c
@@ -111,9 +111,7 @@ struct netent *getnetent(void)
again:
if (!line) {
- line = malloc(BUFSIZ + 1);
- if (!line)
- abort();
+ line = __uc_malloc(BUFSIZ + 1);
}
p = fgets(line, BUFSIZ, netf);