diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-06-26 21:54:30 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-06-27 07:42:41 +0200 |
commit | f50ed5b5c1e3caa38a5409cc22ea53fefd5c1209 (patch) | |
tree | 827ac3d7301849f2608dba0c1465d65137fffd94 /src/files.cc | |
parent | 143808187704f8feec1b71f4e1c9a4b7efb1d9d6 (diff) |
Remove most of z-virt.[ch]
This commit leaves only safe_calloc() as a convenient "non-failing"
calloc().
Diffstat (limited to 'src/files.cc')
-rw-r--r-- | src/files.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/files.cc b/src/files.cc index 26687148..04066bbd 100644 --- a/src/files.cc +++ b/src/files.cc @@ -432,9 +432,9 @@ errr process_pref_file_aux(char *buf) if (!tmp[0] || tmp[1]) return (1); i = (byte)(tmp[0]); - string_free(keymap_act[mode][i]); + free(keymap_act[mode][i]); - keymap_act[mode][i] = string_make(macro__buf); + keymap_act[mode][i] = strdup(macro__buf); return (0); } |