Browse Source

- methods/ftp.cc: likewise;

Otavio Salvador 19 years ago
parent
commit
b856433668
2 changed files with 2 additions and 1 deletions
  1. 1 0
      debian/changelog
  2. 1 1
      methods/ftp.cc

+ 1 - 0
debian/changelog

@@ -64,6 +64,7 @@ apt (0.7.7) UNRELEASED; urgency=low
     - apt-pkg/deb/dpkgpm.cc: initialization order and conversion from
       string constant to 'char*';
     - methods/gpgv.cc: conversion from string constant to 'char*';
+    - methods/ftp.cc: likewise;
 
   [ Ian Jackson ]
   * dpkg-triggers: Deal properly with new package states.

+ 1 - 1
methods/ftp.cc

@@ -1101,7 +1101,7 @@ int main(int argc,const char *argv[])
 	 char S[300];
 	 snprintf(S,sizeof(S),"http_proxy=%s",getenv("ftp_proxy"));
 	 putenv(S);
-	 putenv("no_proxy=");
+	 putenv((char *)"no_proxy=");
 	 
 	 // Run the http method
 	 string Path = flNotFile(argv[0]) + "http";