Fix for [fltk.coredev] native file chooser crash

This commit is contained in:
ManoloFLTK 2023-01-27 08:35:38 +01:00
parent e2028c66fe
commit d604c37c90

View File

@ -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) {