diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-11 04:25:24 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-11 04:25:24 +0800 |
commit | c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644 (patch) | |
tree | d904454d422c5ea1da21ff8f4aef63075f8035f7 /mbbsd/bbs.c | |
parent | 4f2361c99a9fb144998319252f8f8bd91b9601ee (diff) | |
download | pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar.gz pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar.bz2 pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar.lz pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar.xz pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.tar.zst pttbbs-c0ec6aa1cfa1ab6dc7db2453d68bb5b33c8d3644.zip |
copy post's metadata (including money) while it is deleted.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3470 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/bbs.c')
-rw-r--r-- | mbbsd/bbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 3bf72ba0..e984f30c 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -510,10 +510,10 @@ cancelpost(const fileheader_t *fh, int by_BM, char *newpath) if ((fin = fopen(fn1, "r"))) { brd = by_BM ? "deleted" : "junk"; + memcpy(&postfile, fh, sizeof(fileheader_t)); setbpath(newpath, brd); stampfile(newpath, &postfile); - memcpy(postfile.owner, fh->owner, IDLEN + TTLEN + 10); - + nick[0] = '\0'; while (fgets(genbuf, sizeof(genbuf), fin)) { if (!strncmp(genbuf, str_author1, LEN_AUTHOR1) || |