From 0f4fa1633d898d91b5426aa44b35879eef51c66b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 30 Jun 2014 13:39:09 +0000 Subject: [PATCH] Changes brought in at r. 10046 make fluid crash when open or saving files with Fl_Native_File_Chooser on the WIN32 platform. The filter used by fluid "FLUID files \t*.f[ld]/n" makes Fl_Native_File_Chooser::parse_filter() crash. The present changes TEMPORARILY avoid this crash, but r. 10046 changes should be closely reviewed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Native_File_Chooser_WIN32.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Fl_Native_File_Chooser_WIN32.cxx b/src/Fl_Native_File_Chooser_WIN32.cxx index b0f9013a9..5861f440a 100644 --- a/src/Fl_Native_File_Chooser_WIN32.cxx +++ b/src/Fl_Native_File_Chooser_WIN32.cxx @@ -718,11 +718,12 @@ void Fl_Native_File_Chooser::parse_filter(const char *in) { // Init int nwildcards = 0; - char **wildcards; // parsed wildcards (can be several) + //char **wildcards; // parsed wildcards (can be several) + char *wildcards[80]; // TMP int maxfilters = (strcnt(in, ",|") + 1); // count wildcard seps int t; - wildcards = new char*[maxfilters]; - for ( t=0; t