From f595b37fd0053e81330e78901f42818243d0ee2d Mon Sep 17 00:00:00 2001 From: Tvangeste Date: Wed, 13 Mar 2013 10:55:22 +0100 Subject: [PATCH] Better Dictd dictionary name detection (Issue #237). --- dictdfiles.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dictdfiles.cc b/dictdfiles.cc index 21000900..4423524f 100644 --- a/dictdfiles.cc +++ b/dictdfiles.cc @@ -406,7 +406,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( continue; } - if ( !strncmp( buf, "00databaseshort", 15 ) ) // Check for proper dictionary name + // Check for proper dictionary name + if ( !strncmp( buf, "00databaseshort", 15 ) || !strncmp( buf, "00-database-short", 17 ) ) { char * tab1 = strchr( buf, '\t' ); if ( tab1 )