Mercurial > mplayer.hg
comparison libmpdvdkit2/dvd_input.c @ 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 | 596919e4f601 |
children | 7a80c6ac5058 |
comparison
equal
deleted
inserted
replaced
11775:66e491c35dc8 | 11776:12615e408fb9 |
---|---|
51 static dvd_input_t css_open(const char *target) | 51 static dvd_input_t css_open(const char *target) |
52 { | 52 { |
53 dvd_input_t dev; | 53 dvd_input_t dev; |
54 | 54 |
55 /* Allocate the handle structure */ | 55 /* Allocate the handle structure */ |
56 dev = (dvd_input_t) malloc(sizeof(dvd_input_t)); | 56 dev = (dvd_input_t) malloc(sizeof(struct dvd_input_s)); |
57 if(dev == NULL) { | 57 if(dev == NULL) { |
58 fprintf(stderr, "libdvdread: Could not allocate memory.\n"); | 58 fprintf(stderr, "libdvdread: Could not allocate memory.\n"); |
59 return NULL; | 59 return NULL; |
60 } | 60 } |
61 | 61 |