changeset 23540:d655edc9d107

When parsing ass-force-style arguments, search for '=' and '.' characters with strrchr. This allows using it for styles whose name contains those characters. Patch by ѧߧܧ яڏ <branko majic at gmail com>.
author eugeni
date Fri, 15 Jun 2007 22:22:16 +0000
parents 790efaddf175
children 5fda2824ce8a
files libass/ass.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Fri Jun 15 22:15:27 2007 +0000
+++ b/libass/ass.c	Fri Jun 15 22:22:16 2007 +0000
@@ -331,13 +331,13 @@
 	if (!list) return;
 	
 	for (fs = list; *fs; ++fs) {
-		eq = strchr(*fs, '=');
+		eq = strrchr(*fs, '=');
 		if (!eq)
 			continue;
 		*eq = '\0';
 		token = eq + 1;
 
-		dt = strchr(*fs, '.');
+		dt = strrchr(*fs, '.');
 		if (dt) {
 			*dt = '\0';
 			style = *fs;