From 50914ffaff8154a665e812c2d72c1195fc74dc33 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:58:04 +0000 Subject: [PATCH] Fixed c_str handling Author: jgg Date: 2001-05-27 04:40:57 GMT Fixed c_str handling --- apt-pkg/deb/dpkgpm.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index ce69ad6d6..91f74e128 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: dpkgpm.cc,v 1.21 2001/05/07 05:35:46 jgg Exp $ +// $Id: dpkgpm.cc,v 1.22 2001/05/27 04:40:57 jgg Exp $ /* ###################################################################### DPKG Package Manager - Provide an interface to dpkg @@ -354,7 +354,8 @@ bool pkgDPkgPM::Go() unsigned int n = 0; unsigned long Size = 0; - Args[n++] = _config->Find("Dir::Bin::dpkg","dpkg").c_str(); + string Tmp = _config->Find("Dir::Bin::dpkg","dpkg").c_str(); + Args[n++] = Tmp.c_str(); Size += strlen(Args[n-1]); // Stick in any custom dpkg options -- 2.45.2