From 44ebcc9a3e9bcd18b11123044e03223e420a8da7 Mon Sep 17 00:00:00 2001 From: in2 Date: Sun, 25 Aug 2002 07:37:47 +0000 Subject: fix memory error git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@495 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mbbsd/edit.c b/mbbsd/edit.c index db335241..c74dd2b2 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1,4 +1,4 @@ -/* $Id: edit.c,v 1.17 2002/08/25 07:13:53 in2 Exp $ */ +/* $Id: edit.c,v 1.18 2002/08/25 07:37:47 in2 Exp $ */ #include "bbs.h" typedef struct textline_t { struct textline_t *prev; @@ -767,6 +767,7 @@ write_header(FILE * fp) int number; /* post number */ } postlog; + memset(&postlog, 0, sizeof(postlog)); strlcpy(postlog.author, cuser.userid, sizeof(postlog.author)); ifuseanony = 0; #ifdef HAVE_ANONYMOUS -- cgit v1.2.3