From cba2f737f10e9b0a69b1b893ce9c8e1093929307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 17 Feb 2003 13:46:29 +0000 Subject: [PATCH] fix crash git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6184 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/tex2lyx.C | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tex2lyx/tex2lyx.C b/src/tex2lyx/tex2lyx.C index f26c71e0bf..5e5ad9a5d1 100644 --- a/src/tex2lyx/tex2lyx.C +++ b/src/tex2lyx/tex2lyx.C @@ -41,14 +41,14 @@ char const CLOSE = '>'; char const TAB = '\001'; char const LINE = '\002'; -const char * known_languages[] = { "austrian", "babel", "bahasa", -"basque", "breton", "bulgarian", "catalan", "croatian", "czech", "danish", -"dutch", "english", "esperanto", "estonian", "finnish", "francais", -"frenchb", "galician", "germanb", "greek", "hebcal", "hebfont", "hebrew", -"hebrew_newcode", "hebrew_oldcode", "hebrew_p", "hyphen", "icelandic", -"irish", "italian", "latin", "lgrcmr", "lgrcmro", "lgrcmss", "lgrcmtt", -"lgrenc", "lgrlcmss", "lgrlcmtt", "lheclas", "lhecmr", "lhecmss", -"lhecmtt", "lhecrml", "lheenc", "lhefr", "lheredis", "lheshold", +const char * known_languages[] = { "austrian", "babel", "bahasa", "basque", +"breton", "british", "bulgarian", "catalan", "croatian", "czech", +"danish", "dutch", "english", "esperanto", "estonian", "finnish", +"francais", "frenchb", "galician", "germanb", "greek", "hebcal", "hebfont", +"hebrew", "hebrew_newcode", "hebrew_oldcode", "hebrew_p", "hyphen", +"icelandic", "irish", "italian", "latin", "lgrcmr", "lgrcmro", "lgrcmss", +"lgrcmtt", "lgrenc", "lgrlcmss", "lgrlcmtt", "lheclas", "lhecmr", +"lhecmss", "lhecmtt", "lhecrml", "lheenc", "lhefr", "lheredis", "lheshold", "lheshscr", "lheshstk", "lsorbian", "magyar", "naustrian", "ngermanb", "ngerman", "norsk", "polish", "portuges", "rlbabel", "romanian", "russianb", "samin", "scottish", "serbian", "slovak", "slovene", "spanish", @@ -148,7 +148,7 @@ void handle_opt(vector & opts, char const ** what, string & target) if (opts.empty()) return; - for ( ; what; ++what) { + for ( ; *what; ++what) { vector::iterator it = find(opts.begin(), opts.end(), *what); if (it != opts.end()) { //cerr << "### found option '" << *what << "'\n";