summaryrefslogtreecommitdiff
path: root/methods/gzip.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:03 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:03 +0000
commit2d33c52cfb925610db6ecea1992c4a54211e1624 (patch)
treeca70265e5c17e088bce46e8c5d8f869ac3ff5a0e /methods/gzip.cc
parent753b3525312a15a2a45a1646100c8bcdfa883b83 (diff)
Fixed c_str handling
Author: jgg Date: 2001-05-27 04:29:30 GMT Fixed c_str handling
Diffstat (limited to 'methods/gzip.cc')
-rw-r--r--methods/gzip.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/methods/gzip.cc b/methods/gzip.cc
index 35ff692f4..a07df81a2 100644
--- a/methods/gzip.cc
+++ b/methods/gzip.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: gzip.cc,v 1.15 2001/03/13 06:51:46 jgg Exp $
+// $Id: gzip.cc,v 1.16 2001/05/27 04:29:30 jgg Exp $
/* ######################################################################
GZip method - Take a file URI in and decompress it into the target
@@ -68,7 +68,8 @@ bool GzipMethod::Fetch(FetchItem *Itm)
SetCloseExec(STDOUT_FILENO,false);
const char *Args[3];
- Args[0] = _config->Find(GzPathOption,Prog).c_str();
+ string Tmp = _config->Find(GzPathOption,Prog);
+ Args[0] = Tmp.c_str();
Args[1] = "-d";
Args[2] = 0;
execvp(Args[0],(char **)Args);