summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-19 15:58:41 +0000
committerSadie Powell <sadie@witchery.services>2024-03-19 15:58:41 +0000
commit1a3844e74ebbb07920d494137ed2989172ae3dc5 (patch)
tree2f654c4805ba7d649c36dfcf7b917d4b097d16c2
parentbfed2e1bf5cfb250e17e91566546b38b4b9a34d8 (diff)
Fix the Windows build.
-rw-r--r--src/modulemanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index 96cb848b6..4ceae6417 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -133,7 +133,7 @@ ModuleReturn ModuleManager::LoadModule(const Anope::string &modname, User *u)
#ifdef _WIN32
/* Generate the filename for the temporary copy of the module */
- const auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
+ auto pbuf = Anope::ExpandData("runtime/" + modname + DLL_EXT ".XXXXXX");
/* Don't skip return value checking! -GD */
ModuleReturn ret = moduleCopyFile(modname, pbuf);