summaryrefslogtreecommitdiff
path: root/ftparchive
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:06:14 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:06:14 +0000
commit5200ec6faf420bdce4df54242c689b68bdf5d464 (patch)
tree289c010b6382aeaddb195adc3ebb505b9b80900a /ftparchive
parent9fde0fa92e614aae3e02cfa2c6c87f8a3a7e76a8 (diff)
* Patch from Jason Gunthorpe to remove arbitrary length...
Author: mdz Date: 2004-03-24 01:40:43 GMT * Patch from Jason Gunthorpe to remove arbitrary length limit on Binary field in SourcesWriter::DoPackage
Diffstat (limited to 'ftparchive')
-rw-r--r--ftparchive/writer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index bc03492f4..e1fd33ad3 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: writer.cc,v 1.13 2004/01/04 00:20:59 mdz Exp $
+// $Id: writer.cc,v 1.14 2004/03/24 01:40:43 mdz Exp $
/* ######################################################################
Writer
@@ -555,10 +555,10 @@ bool SourcesWriter::DoPackage(string FileName)
// Lookup the overide information, finding first the best priority.
string BestPrio;
- char Buffer[1000];
string Bins = Tags.FindS("Binary");
+ char Buffer[Bins.length() + 1];
Override::Item *OverItem = 0;
- if (Bins.empty() == false && Bins.length() < sizeof(Buffer))
+ if (Bins.empty() == false)
{
strcpy(Buffer,Bins.c_str());