]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
Merge remote-tracking branch 'mvo/bugfix/coverity' into debian/sid
[apt.git] / methods / http.cc
index 82456d78ba07fbd1a394a9667d0f1fd7281d5155..278ddb290519fba10b3dc44b03b80e39d7fa81d6 100644 (file)
@@ -1400,7 +1400,7 @@ bool HttpMethod::AutoDetectProxy()
    char buf[512];
    int InFd = Pipes[0];
    close(Pipes[1]);
-   int res = read(InFd, buf, sizeof(buf));
+   int res = read(InFd, buf, sizeof(buf)-1);
    ExecWait(Process, "ProxyAutoDetect", true);
 
    if (res < 0)