X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Ftitler%2Ftitler.C;h=4bd0b69b3f5c63ce454e5cd8355f91316b644208;hp=79b90a7ab2d797d26af60901288d61fe9ab72cd9;hb=686bc04a488847170d80ec603f8c33962a7aa928;hpb=5c8da1404ee2707ea621e9361541bdc973bcfbb9 diff --git a/cinelerra-5.1/plugins/titler/titler.C b/cinelerra-5.1/plugins/titler/titler.C index 79b90a7a..4bd0b69b 100644 --- a/cinelerra-5.1/plugins/titler/titler.C +++ b/cinelerra-5.1/plugins/titler/titler.C @@ -1339,7 +1339,8 @@ int TitleParser::wget(wchar_t &wch) int ich; while( (ich=wnext()) >= 0 ) { if( ich == '\\' ) { - if( (ich=wnext()) == '\n' ) continue; + if( (ich=wnext()) < 0 ) break; + if( !ich || ich == '\n' ) continue; wch = ich; return 0; }