summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-08 22:51:28 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-08 23:46:24 +0100
commit93c4dd298f41798cf90437eec740ffd31e729f65 (patch)
tree81a0299eb5a0a270fcfcd6fb332a11bd6e17ec04
parent838abd31d2041bff1a42767ec92ad7452cb9ce74 (diff)
Import fix from CVS: Fixes module directory paths.
-rw-r--r--changes.txt1
-rw-r--r--src/modules.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/changes.txt b/changes.txt
index 704c262a..0d902cb5 100644
--- a/changes.txt
+++ b/changes.txt
@@ -9,6 +9,7 @@ T.o.M.E 2.3.6
- Misc. Mimicry fixes.
- Prevent immunities from Balrog Form persisting too long.
- Fix for loading/saving on Linux distribution using Fortify.
+- Fix for module directory paths.
diff --git a/src/modules.c b/src/modules.c
index af382169..6311dbad 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -19,7 +19,7 @@ static void module_reset_dir_aux(cptr *dir, cptr new_path)
char buf[1024];
/* Build the new path */
- strnfmt(buf, sizeof (buf), "%s%s%s", dir, PATH_SEP, new_path);
+ strnfmt(buf, sizeof (buf), "%s%s%s", *dir, PATH_SEP, new_path);
string_free(*dir);
*dir = string_make(buf);