summaryrefslogtreecommitdiffstats
path: root/libhb/dvd.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-05-27 18:40:27 +0000
committerjstebbins <[email protected]>2014-05-27 18:40:27 +0000
commit0340cdc16c3cf51f24a2ddfcb40cd8d3b7257e17 (patch)
treea495a8b246ce107451c5a2528f61338c1d9bcf3b /libhb/dvd.c
parent9ab2cefc88f522c02817a248e2b8d964d186c04f (diff)
libhb: fix overwriting of source path
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6206 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/dvd.c')
-rw-r--r--libhb/dvd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/dvd.c b/libhb/dvd.c
index 628585b31..418382317 100644
--- a/libhb/dvd.c
+++ b/libhb/dvd.c
@@ -192,10 +192,10 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur
p_last = &p_cur[1];
}
}
- char *dot_term = strrchr(p_last, '.');
+ snprintf( title->name, sizeof( title->name ), "%s", p_last );
+ char *dot_term = strrchr(title->name, '.');
if (dot_term)
*dot_term = '\0';
- snprintf( title->name, sizeof( title->name ), "%s", p_last );
}
/* VTS which our title is in */