projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove term_key, which was intended to handle function keys in a cross-
[u/mdw/putty]
/
windows
/
winstore.c
diff --git
a/windows/winstore.c
b/windows/winstore.c
index
c165676
..
76c73d0
100644
(file)
--- a/
windows/winstore.c
+++ b/
windows/winstore.c
@@
-230,21
+230,20
@@
void write_setting_fontspec(void *handle, const char *name, FontSpec *font)
sfree(settingname);
}
sfree(settingname);
}
-
int read_setting_filename(void *handle, const char *name, Filename *result
)
+
Filename *read_setting_filename(void *handle, const char *name
)
{
char *tmp = read_setting_s(handle, name);
if (tmp) {
{
char *tmp = read_setting_s(handle, name);
if (tmp) {
- strncpy(result->path, tmp, sizeof(result->path)-1);
- result->path[sizeof(result->path)-1] = '\0';
+ Filename *ret = filename_from_str(tmp);
sfree(tmp);
sfree(tmp);
- return
TRUE
;
+ return
ret
;
} else
} else
- return
FALSE
;
+ return
NULL
;
}
}
-void write_setting_filename(void *handle, const char *name, Filename result)
+void write_setting_filename(void *handle, const char *name, Filename
*
result)
{
{
- write_setting_s(handle, name, result
.
path);
+ write_setting_s(handle, name, result
->
path);
}
void close_settings_r(void *handle)
}
void close_settings_r(void *handle)