diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-28 10:34:31 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2006-12-28 10:34:31 +0800 |
commit | 6ee23c3429c4021ddaeb80be00be8b7517a02455 (patch) | |
tree | 8a98f7f645c056a3338fdc1bfb6e53d0b589a5db /util | |
parent | 1132212a3c0286eb4103768c1897f2387ae27cc8 (diff) | |
download | pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar.gz pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar.bz2 pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar.lz pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar.xz pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.tar.zst pttbbs-6ee23c3429c4021ddaeb80be00be8b7517a02455.zip |
fix bugs
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3462 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r-- | util/wretch_man.c | 6 |
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; |