# HG changeset patch # User reimar # Date 1164493120 0 # Node ID 530b31f3e60a9d3ca63c704be93851bec6c8ca18 # Parent 3ec5917cdae2d3fcb16295f72e2730acdfc897a6 Sanity-check number of lines in CC subtitle diff -r 3ec5917cdae2 -r 530b31f3e60a sub_cc.c --- 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