aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-05-13 23:54:22 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-05-13 23:54:22 +0000
commit9c49eac6721bbbb72ffa6f62fb1d2f1f6b0b8d7f (patch)
tree47245f695f25822d2f7b68b5ed070339657e03be /lib/libc_r
parent8d9b7b9e3f0a6a14a9f62283bbcf802e35b568a8 (diff)
downloadsrc-9c49eac6721bbbb72ffa6f62fb1d2f1f6b0b8d7f.tar.gz
src-9c49eac6721bbbb72ffa6f62fb1d2f1f6b0b8d7f.zip
Fixed overallocation of _thread_fd_table.
PR: 3494 Submitted by: Steve Bauer <sbauer@rock.sdsmt.edu>
Notes
Notes: svn path=/head/; revision=25795
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c
index 2adc34f152c1..5833cdfcacec 100644
--- a/lib/libc_r/uthread/uthread_init.c
+++ b/lib/libc_r/uthread/uthread_init.c
@@ -183,7 +183,7 @@ _thread_init(void)
PANIC("Cannot get dtablesize");
}
/* Allocate memory for the file descriptor table: */
- if ((_thread_fd_table = (struct fd_table_entry **) malloc(sizeof(struct fd_table_entry) * _thread_dtablesize)) == NULL) {
+ if ((_thread_fd_table = (struct fd_table_entry **) malloc(sizeof(struct fd_table_entry *) * _thread_dtablesize)) == NULL) {
/*
* Cannot allocate memory for the file descriptor
* table, so abort this process.