summaryrefslogtreecommitdiff
path: root/libc/inet/getproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/getproto.c')
-rw-r--r--libc/inet/getproto.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index c1292ed30..6367ccfce 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -59,6 +59,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <malloc.h>
#include <errno.h>
libc_hidden_proto(fopen)
@@ -86,9 +87,7 @@ static int proto_stayopen;
static void __initbuf(void)
{
if (!static_aliases) {
- static_aliases = malloc(SBUFSIZE);
- if (!static_aliases)
- abort();
+ static_aliases = __uc_malloc(SBUFSIZE);
}
}