summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules.c2
1 files changed, 1 insertions, 1 deletions
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);