Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does not end with \n.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-09-04 13:50:31 +00:00
parent 7d8c00cc09
commit bb9dd96ad3

View File

@ -399,7 +399,7 @@ static char *prepareMacFilter(int count, const char *filter, char **patterns) {
}
rank++;
*(q++) = '\n';
if (*p) p = r + 1;
if (*r) p = r + 1; else p = r;
} while(*p);
*q = 0;
return t;