]> git.sesse.net Git - vlc/commitdiff
bluray: don't reinvent strdup
authorRafaël Carré <funman@videolan.org>
Mon, 12 Aug 2013 07:16:13 +0000 (09:16 +0200)
committerRafaël Carré <funman@videolan.org>
Fri, 16 Aug 2013 10:43:12 +0000 (12:43 +0200)
modules/access/bluray.c

index e4581637869949208ac1f1bd1b1341111b35facd..d1edef937903a9e1e7fc3840e7c60811ee167400 100644 (file)
@@ -249,9 +249,8 @@ static int blurayOpen( vlc_object_t *object )
     TAB_INIT( p_sys->i_title, p_sys->pp_title );
 
     /* store current bd path */
-    if (p_demux->psz_file) {
-        p_sys->psz_bd_path = strndup(p_demux->psz_file, strlen(p_demux->psz_file));
-    }
+    if (p_demux->psz_file)
+        p_sys->psz_bd_path = strdup(p_demux->psz_file);
 
     /* If we're passed a block device, try to convert it to the mount point. */
     FindMountPoint(&p_sys->psz_bd_path);