]> git.saurik.com Git - apt.git/commitdiff
cherry pick -r1846 from bzr+ssh://bazaar.launchpad.net/~mvo/apt/lp346386/
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 10 Jul 2012 13:08:06 +0000 (15:08 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 10 Jul 2012 13:08:06 +0000 (15:08 +0200)
apt-pkg/contrib/fileutl.cc

index 20d2a02f52c116f6e8586e36f06b0d3255d9eed1..d63195c7d61cf68aa94e7cc77c29b5397e118e85 100644 (file)
@@ -858,7 +858,7 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap)
 bool IsPgpClearTextSignature(string const &FileName)
 {
    static const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----\n";
-   char buffer[sizeof(SIGMSG)];
+   char buffer[strlen(SIGMSG)+1];
    FILE* gpg = fopen(FileName.c_str(), "r");
    if (gpg == NULL)
       return false;