FLTK logo

[master] d604c37 - Fix for [fltk.coredev] native file chooser crash

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] d604c37 - Fix for native file chooser crash "ManoloFLTK" Jan 26, 2023  
 
commit d604c37c90404958bce4fe2a8c87f7fd79e68074
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Fri Jan 27 08:35:38 2023 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Fri Jan 27 08:35:38 2023 +0100

    Fix for [fltk.coredev] native file chooser crash

 src/Fl_Native_File_Chooser_Zenity.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_Native_File_Chooser_Zenity.cxx src/Fl_Native_File_Chooser_Zenity.cxx
index 9d79e62..ae972de 100644
--- src/Fl_Native_File_Chooser_Zenity.cxx
+++ src/Fl_Native_File_Chooser_Zenity.cxx
@@ -66,7 +66,7 @@ char *Fl_Zenity_Native_File_Chooser_Driver::build_command() {
     preset = new char[l];
     snprintf(preset, l, "--filename '%s'", _directory);
   }
-  int lcommand = 1000;
+  int lcommand = 10000;
   char *command = new char[lcommand];
   strcpy(command, "zenity ");
   if (_title) {
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.