changeset 21237:530b31f3e60a

Sanity-check number of lines in CC subtitle
author reimar
date Sat, 25 Nov 2006 22:18:40 +0000
parents 3ec5917cdae2
children 48c3289a94f4
files sub_cc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub_cc.c	Sat Nov 25 22:06:00 2006 +0000
+++ b/sub_cc.c	Sat Nov 25 22:18:40 2006 +0000
@@ -89,7 +89,7 @@
 	
 	if(c=='\n')
 	{
-		if(cursor_pos>0)
+		if(cursor_pos>0 && bb->lines < SUB_MAX_TEXT)
 			bb->lines++;cursor_pos=0;
 	}
 	else