summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-03 13:39:46 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-03-03 13:39:46 +0000
commit9dae0ef2b9f8b945776e9498970077a8a2b3eb19 (patch)
tree79b38ca97e165b875349731622319e757f697e5d /stream/stream_dvd.c
parent5caf4aa1b92b6b4aadd3e94cd3a210f62c231dd1 (diff)
downloadmpv-9dae0ef2b9f8b945776e9498970077a8a2b3eb19.tar.bz2
mpv-9dae0ef2b9f8b945776e9498970077a8a2b3eb19.tar.xz
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
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index d3decc3a20..1541f46c14 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -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++) {