diff options
author | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
commit | 322ae93a5e0b78b65831f9fd87fd456eb84d21a1 (patch) | |
tree | 5b967e1d873ff6eff8296bf9fda73825f0c55884 /loadkmap.c | |
parent | b89075298edf0a471b9046b1f3c8a936e18ead20 (diff) |
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.
Diffstat (limited to 'loadkmap.c')
-rw-r--r-- | loadkmap.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/loadkmap.c b/loadkmap.c index 488585f9c..2321a1ede 100644 --- a/loadkmap.c +++ b/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) { |