Mercurial > mplayer.hg
changeset 11776:12615e408fb9
Fix (possible) memory corruption. dvd_input_t is pointer to struct dvd_input_s and not a struct.
author | lumag |
---|---|
date | Sun, 11 Jan 2004 18:56:48 +0000 |
parents | 66e491c35dc8 |
children | fa7e6193a9ef |
files | libmpdvdkit2/dvd_input.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdvdkit2/dvd_input.c Sun Jan 11 17:07:32 2004 +0000 +++ b/libmpdvdkit2/dvd_input.c Sun Jan 11 18:56:48 2004 +0000 @@ -53,7 +53,7 @@ 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;