mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-16 18:47:32 -05:00
Turn 'Filename' into a dynamically allocated type with no arbitrary
length limit, just as I did to FontSpec yesterday. [originally from svn r9316]
This commit is contained in:
9
config.c
9
config.c
@ -131,12 +131,11 @@ void conf_filesel_handler(union control *ctrl, void *dlg,
|
||||
Conf *conf = (Conf *)data;
|
||||
|
||||
if (event == EVENT_REFRESH) {
|
||||
dlg_filesel_set(ctrl, dlg, *conf_get_filename(conf, key));
|
||||
dlg_filesel_set(ctrl, dlg, conf_get_filename(conf, key));
|
||||
} else if (event == EVENT_VALCHANGE) {
|
||||
Filename filename;
|
||||
dlg_filesel_get(ctrl, dlg, &filename);
|
||||
conf_set_filename(conf, key, &filename);
|
||||
/* If Filenames ever become dynamic, free this one. */
|
||||
Filename *filename = dlg_filesel_get(ctrl, dlg);
|
||||
conf_set_filename(conf, key, filename);
|
||||
filename_free(filename);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user