# HG changeset patch # User lumag # Date 1073847408 0 # Node ID 12615e408fb93c7125e05af8dc93165d8aaed866 # Parent 66e491c35dc872ff96617e5b2aa7748ac8222d01 Fix (possible) memory corruption. dvd_input_t is pointer to struct dvd_input_s and not a struct. diff -r 66e491c35dc8 -r 12615e408fb9 libmpdvdkit2/dvd_input.c --- 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;