]> git.saurik.com Git - apt.git/commitdiff
Fixed uninited buffer
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:56:48 +0000 (16:56 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:56:48 +0000 (16:56 +0000)
Author: jgg
Date: 2001-02-27 04:24:09 GMT
Fixed uninited buffer

ftparchive/contents.cc

index 145a68781bee38b4e46961ccd574331f2ec62f3a..b6de47b5802ea5768bf3ecb481bc7cdf29c0ed91 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
 // -*- 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
 /* ######################################################################
    
    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];
 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)
    DoPrint(Out,&Root,Buffer);
 }
 void GenContents::DoPrint(FILE *Out,GenContents::Node *Top, char *Buf)