mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -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:
@ -14,14 +14,12 @@ FontSpec *platform_default_fontspec(const char *name)
|
||||
return fontspec_new("", 0, 0, 0);
|
||||
}
|
||||
|
||||
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 *platform_default_s(const char *name)
|
||||
|
Reference in New Issue
Block a user