summaryrefslogtreecommitdiff
path: root/libc/inet/getservice.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/getservice.c')
-rw-r--r--libc/inet/getservice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/inet/getservice.c b/libc/inet/getservice.c
index 5a94c9c69..9ea810be0 100644
--- a/libc/inet/getservice.c
+++ b/libc/inet/getservice.c
@@ -59,6 +59,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <malloc.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
@@ -89,9 +90,7 @@ static int serv_stayopen;
static void __initbuf(void)
{
if (!servbuf) {
- servbuf = malloc(SBUFSIZE);
- if (!servbuf)
- abort();
+ servbuf = __uc_malloc(SBUFSIZE);
}
}