]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/acquire-method.cc: fix copy/paste error
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 15 Mar 2011 08:07:02 +0000 (09:07 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 15 Mar 2011 08:07:02 +0000 (09:07 +0100)
apt-pkg/acquire-method.cc

index 29d53f2ac01a0a9945a79a0580275ab5604d1879..fb45d9ee71395bee8c140914a73c464c22e81d35 100644 (file)
@@ -150,7 +150,7 @@ void pkgAcqMethod::URIStart(FetchResult &Res)
       End += snprintf(End,sizeof(S)-4 - (End - S),"Resume-Point: %lu\n",
                      Res.ResumePoint);
    if (UsedMirror.empty() == false)
-      End += snprintf(End,sizeof(S)-50 - (End - S),"UsedMirror: %s\n",UsedMirror.c_str());
+      End += snprintf(End,sizeof(S)-4 - (End - S),"UsedMirror: %s\n",UsedMirror.c_str());
       
    strcat(End,"\n");
    if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S))