From a1ba04d459bc0c76706486a90b4c978475ea2a17 Mon Sep 17 00:00:00 2001 From: ptt Date: Fri, 30 Jan 2004 18:54:00 +0000 Subject: git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1498 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3