Better Dictd dictionary name detection (Issue #237).

This commit is contained in:
Tvangeste 2013-03-13 10:55:22 +01:00
parent 97ef5aa995
commit f595b37fd0

View file

@ -406,7 +406,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
continue; 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' ); char * tab1 = strchr( buf, '\t' );
if ( tab1 ) if ( tab1 )