summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-31 02:54:00 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-31 02:54:00 +0800
commita1ba04d459bc0c76706486a90b4c978475ea2a17 (patch)
treedf71a7fd1238d470b22f7608ecfaa8518b7b22d0
parent25b281586ee28f3933b2b3df365b3fa5980c3601 (diff)
downloadpttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar.gz
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar.bz2
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar.lz
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar.xz
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.tar.zst
pttbbs-a1ba04d459bc0c76706486a90b4c978475ea2a17.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/record.c b/mbbsd/record.c
index b0513638..e1388abe 100644
--- a/mbbsd/record.c
+++ b/mbbsd/record.c
@@ -512,7 +512,7 @@ stampfile(char *fpath, fileheader_t * fh)
return -1;
} while ((fp = open(fpath, O_CREAT | O_EXCL | O_WRONLY, 0644)) == -1);
close(fp);
- //memset(fh, 0, sizeof(fileheader_t));
+ memset(fh, 0, sizeof(fileheader_t));
strlcpy(fh->filename, ip, sizeof(fh->filename));
ptime = localtime(&dtime);
snprintf(fh->date, sizeof(fh->date),