--- mimedb.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mimedb.c b/mimedb.c index 11c3250..0572023 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 ) { -- 1.7.2.3 ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users