summaryrefslogtreecommitdiffstats
path: root/libhb/dvdnav.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/dvdnav.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/dvdnav.c')
-rw-r--r--libhb/dvdnav.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c
index 081116c3b..3c820b789 100644
--- a/libhb/dvdnav.c
+++ b/libhb/dvdnav.c
@@ -339,10 +339,10 @@ static hb_title_t * hb_dvdnav_title_scan( hb_dvd_t * e, int t, uint64_t min_dura
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 */