Skip to content

Commit

Permalink
cocoa fix filter list not always working correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mlabbe committed Sep 28, 2019
1 parent 067e765 commit f939b05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nfd_cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
{
if ( filterList[i] == ',' || filterList[i] == ';' || filterList[i] == '\0' )
{
++p_typebuf;
if (filterList[i] != '\0')
++p_typebuf;
*p_typebuf = '\0';

NSString *thisType = [NSString stringWithUTF8String: typebuf];
[buildFilterList addObject:thisType];
p_typebuf = typebuf;
Expand Down

0 comments on commit f939b05

Please sign in to comment.