diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:48 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:56:48 +0000 |
commit | b41fd4aee6cb3ec49d52d61f525fa26f95b5af0c (patch) | |
tree | 8c5d22e341d471d6a9cf8ca9a18ecdb72fdf0b5f /ftparchive | |
parent | cfa5659cd241fdbb79efd871f86be9a66d5e935b (diff) | |
download | apt-b41fd4aee6cb3ec49d52d61f525fa26f95b5af0c.tar.gz |
Fixed uninited buffer
Author: jgg
Date: 2001-02-27 04:24:09 GMT
Fixed uninited buffer
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/contents.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ftparchive/contents.cc b/ftparchive/contents.cc index 145a6878..b6de47b5 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) |