mirror of https://github.com/mpv-player/mpv
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:
parent
5caf4aa1b9
commit
9dae0ef2b9
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue