From 322ae93a5e0b78b65831f9fd87fd456eb84d21a1 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 13 Sep 2000 02:46:14 +0000 Subject: Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of segfaulting or handling errors the same way themselves. --- console-tools/loadkmap.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'console-tools/loadkmap.c') diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 488585f9c..2321a1ede 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -67,11 +67,7 @@ int loadkmap_main(int argc, char **argv) exit(FALSE); } - ibuff = (u_short *) malloc(ibuffsz); - if (!ibuff) { - errorMsg("Out of memory.\n"); - exit(FALSE); - } + ibuff = (u_short *) xmalloc(ibuffsz); for (i = 0; i < MAX_NR_KEYMAPS; i++) { if (flags[i] == 1) { -- cgit v1.2.3