1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

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
This commit is contained in:
lumag 2004-01-11 18:56:48 +00:00
parent 70162b5ef8
commit 1dc5754540

View File

@ -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;