From aaee82939afca3f1c11da87d0c44d7c2b07b4c1d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:54:55 +0000 Subject: Fixed for 0 length source files Author: jgg Date: 1999-10-18 04:15:24 GMT Fixed for 0 length source files --- apt-pkg/deb/debsrcrecords.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apt-pkg/deb/debsrcrecords.h') diff --git a/apt-pkg/deb/debsrcrecords.h b/apt-pkg/deb/debsrcrecords.h index e09a57f3c..50488d4b6 100644 --- a/apt-pkg/deb/debsrcrecords.h +++ b/apt-pkg/deb/debsrcrecords.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debsrcrecords.h,v 1.4 1999/10/18 03:44:39 jgg Exp $ +// $Id: debsrcrecords.h,v 1.5 1999/10/18 04:15:25 jgg Exp $ /* ###################################################################### Debian Source Package Records - Parser implementation for Debian style @@ -38,10 +38,9 @@ class debSrcRecordParser : public pkgSrcRecords::Parser virtual string Section() {return Sect.FindS("Section");}; virtual const char **Binaries(); virtual unsigned long Offset() {return iOffset;}; - virtual unsigned long Length() {return Sec.size();}; virtual string AsStr() { - const char *Start,Stop; + const char *Start=0,*Stop=0; Sect.GetSection(Start,Stop); return string(Start,Stop); }; -- cgit v1.2.3