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:
@ -58,14 +58,12 @@ FontSpec *platform_default_fontspec(const char *name)
|
||||
return fontspec_new("");
|
||||
}
|
||||
|
||||
Filename platform_default_filename(const char *name)
|
||||
Filename *platform_default_filename(const char *name)
|
||||
{
|
||||
Filename ret;
|
||||
if (!strcmp(name, "LogFileName"))
|
||||
strcpy(ret.path, "putty.log");
|
||||
return filename_from_str("putty.log");
|
||||
else
|
||||
*ret.path = '\0';
|
||||
return ret;
|
||||
return filename_from_str("");
|
||||
}
|
||||
|
||||
char *get_ttymode(void *frontend, const char *mode) { return NULL; }
|
||||
|
Reference in New Issue
Block a user