Fix for [fltk.coredev] native file chooser crash
This commit is contained in:
parent
e2028c66fe
commit
d604c37c90
@ -66,7 +66,7 @@ char *Fl_Zenity_Native_File_Chooser_Driver::build_command() {
|
|||||||
preset = new char[l];
|
preset = new char[l];
|
||||||
snprintf(preset, l, "--filename '%s'", _directory);
|
snprintf(preset, l, "--filename '%s'", _directory);
|
||||||
}
|
}
|
||||||
int lcommand = 1000;
|
int lcommand = 10000;
|
||||||
char *command = new char[lcommand];
|
char *command = new char[lcommand];
|
||||||
strcpy(command, "zenity ");
|
strcpy(command, "zenity ");
|
||||||
if (_title) {
|
if (_title) {
|
||||||
|
Loading…
Reference in New Issue
Block a user