From b41fd4aee6cb3ec49d52d61f525fa26f95b5af0c Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:56:48 +0000 Subject: Fixed uninited buffer Author: jgg Date: 2001-02-27 04:24:09 GMT Fixed uninited buffer --- ftparchive/contents.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftparchive/contents.cc b/ftparchive/contents.cc index 145a68781..b6de47b58 100644 --- a/ftparchive/contents.cc +++ b/ftparchive/contents.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: contents.cc,v 1.2 2001/02/20 07:03:18 jgg Exp $ +// $Id: contents.cc,v 1.3 2001/02/27 04:24:09 jgg Exp $ /* ###################################################################### contents - Archive contents generator @@ -257,6 +257,7 @@ void GenContents::WriteSpace(FILE *Out,unsigned int Current,unsigned int Target) void GenContents::Print(FILE *Out) { char Buffer[1024]; + Buffer[0] = 0; DoPrint(Out,&Root,Buffer); } void GenContents::DoPrint(FILE *Out,GenContents::Node *Top, char *Buf) -- cgit v1.2.3