From 6a5d6471c5493269d057d0b9d1f59ba18753c1da Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Fri, 26 Nov 2010 11:28:51 -0500 Subject: [PATCH] mimedb: Search for exact mime type match in search_ini. --- mimedb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mimedb.c b/mimedb.c index 11c325000..0572023b3 100644 --- a/mimedb.c +++ b/mimedb.c @@ -214,7 +214,7 @@ static char * search_ini( const char *filename, const char *match ) buf[0]=0; done = 1; } - else if( strncmp( buf, match,len )==0) + else if( strncmp( buf, match, len ) == 0 && buf[len] == '=' ) { done=1; } @@ -721,7 +721,7 @@ static char *get_action( const char *mimetype ) free( launcher_full ); - launcher_command_str = search_ini( launcher_filename, "Exec=" ); + launcher_command_str = search_ini( launcher_filename, "Exec" ); if( !launcher_command_str ) {