diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-03 13:39:46 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-03 13:39:46 +0000 |
commit | 9dae0ef2b9f8b945776e9498970077a8a2b3eb19 (patch) | |
tree | 79b38ca97e165b875349731622319e757f697e5d /stream | |
parent | 5caf4aa1b92b6b4aadd3e94cd3a210f62c231dd1 (diff) |
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')
-rw-r--r-- | stream/stream_dvd.c | 2 |
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++) { |