10000l; in previous commit I allocated a buffer 1 byte too short

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22422 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-03-03 13:39:46 +00:00
parent 5caf4aa1b9
commit 9dae0ef2b9
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
/* Dynamic DVD drive selection on Darwin */
if(!strcmp(dvd_device, "/dev/rdiskN")) {
int i;
size_t len = strlen(dvd_device);
size_t len = strlen(dvd_device)+1;
char *temp_device = malloc(len);
for (i = 1; i < 10; i++) {