aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-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++) {