From 9dae0ef2b9f8b945776e9498970077a8a2b3eb19 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 3 Mar 2007 13:39:46 +0000 Subject: 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 --- stream/stream_dvd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_dvd.c') 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++) { -- cgit v1.2.3