Mercurial > mplayer.hg
changeset 22404:521cd55ab99b
10000l; in previous commit I allocated a buffer 1 byte too short
author | nicodvb |
---|---|
date | Sat, 03 Mar 2007 13:39:46 +0000 |
parents | 11e7787eb78b |
children | 1b1761cbba3b |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Sat Mar 03 13:16:31 2007 +0000 +++ b/stream/stream_dvd.c Sat Mar 03 13:39:46 2007 +0000 @@ -795,7 +795,7 @@ /* 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++) {