summaryrefslogtreecommitdiffstats
path: root/util/wretch_man.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/wretch_man.c')
-rw-r--r--util/wretch_man.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/wretch_man.c b/util/wretch_man.c
index 447c8867..f5e1cfb4 100644
--- a/util/wretch_man.c
+++ b/util/wretch_man.c
@@ -54,9 +54,9 @@ int transman(char *fname, char *newpath)
strlcpy(fhdr.title, "¡º ", sizeof(fhdr.title));
if (whdr.xname[0] == '@')
- snprintf(buf, sizeof(buf), "%s/@/%s", newpath, whdr.xname);
+ snprintf(buf, sizeof(buf), "%s/@/%s", path, whdr.xname);
else
- snprintf(buf, sizeof(buf), "%s/%c/%s", newpath, whdr.xname[7], whdr.xname);
+ snprintf(buf, sizeof(buf), "%s/%c/%s", path, whdr.xname[7], whdr.xname);
copy_file(buf, newpath);
}
@@ -109,6 +109,8 @@ int main(int argc, char *argv[])
return 0;
}
+ attach_SHM();
+
transman(".DIR", buf);
return 0;