mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -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:
@ -457,12 +457,13 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
|
||||
}
|
||||
|
||||
if (!strcmp(p, "-i")) {
|
||||
Filename fn;
|
||||
Filename *fn;
|
||||
RETURN(2);
|
||||
UNAVAILABLE_IN(TOOLTYPE_NONNETWORK);
|
||||
SAVEABLE(0);
|
||||
fn = filename_from_str(value);
|
||||
conf_set_filename(conf, CONF_keyfile, &fn);
|
||||
conf_set_filename(conf, CONF_keyfile, fn);
|
||||
filename_free(fn);
|
||||
}
|
||||
|
||||
if (!strcmp(p, "-4") || !strcmp(p, "-ipv4")) {
|
||||
|
Reference in New Issue
Block a user