diff options
author | 2004-01-11 18:56:48 +0000 | |
---|---|---|
committer | 2004-01-11 18:56:48 +0000 | |
commit | 1dc5754540cdbfc842f176083de86329601f00aa (patch) | |
tree | a8e9e70d574eb6e6fdc63834364527337a3be6d9 | |
parent | 70162b5ef8fe51eef0480ffab3f4854afb39b32b (diff) |
Fix (possible) memory corruption. dvd_input_t is pointer to struct dvd_input_s and not a struct.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11777 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdvdkit2/dvd_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdvdkit2/dvd_input.c b/libmpdvdkit2/dvd_input.c index 80a1de5beb..0709c71540 100644 --- a/libmpdvdkit2/dvd_input.c +++ b/libmpdvdkit2/dvd_input.c @@ -53,7 +53,7 @@ static dvd_input_t css_open(const char *target) dvd_input_t dev; /* Allocate the handle structure */ - dev = (dvd_input_t) malloc(sizeof(dvd_input_t)); + dev = (dvd_input_t) malloc(sizeof(struct dvd_input_s)); if(dev == NULL) { fprintf(stderr, "libdvdread: Could not allocate memory.\n"); return NULL; |