diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-01-07 00:37:04 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-01-07 01:03:34 +0100 |
commit | e26350c05b0af0211daa2bdc06078432372da37a (patch) | |
tree | 8d22f972a8faaeec817dad538ae276c20dab56ed /crawl-ref/source/macro.cc | |
parent | 7c5846f437b474be079758c58e724c86d620a582 (diff) | |
download | crawl-ref-e26350c05b0af0211daa2bdc06078432372da37a.tar.gz crawl-ref-e26350c05b0af0211daa2bdc06078432372da37a.zip |
Fix clashes between typedefs and variables.
Diffstat (limited to 'crawl-ref/source/macro.cc')
-rw-r--r-- | crawl-ref/source/macro.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/macro.cc b/crawl-ref/source/macro.cc index 06a649f6dc..5fcd1d3492 100644 --- a/crawl-ref/source/macro.cc +++ b/crawl-ref/source/macro.cc @@ -679,10 +679,10 @@ void macro_save() << std::endl << "# Key Mappings:" << std::endl; for (int mc = KMC_DEFAULT; mc < KMC_CONTEXT_COUNT; ++mc) { - char keybuf[30] = "K:"; + char buf[30] = "K:"; if (mc) - snprintf(keybuf, sizeof keybuf, "K%d:", mc); - write_map(f, Keymaps[mc], keybuf); + snprintf(buf, sizeof buf, "K%d:", mc); + write_map(f, Keymaps[mc], buf); } f << "# Command Macros:" << std::endl; |