diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-07-10 15:08:06 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-07-10 15:08:06 +0200 |
commit | 1c89c98a56df709b4c4477bbd7b86f4e32cee214 (patch) | |
tree | 0072d4eb93e2273196c7f36bde77234bffd6d118 /apt-pkg/contrib/fileutl.cc | |
parent | 549b49394848d051dc116600571df55d7160eeaa (diff) |
cherry pick -r1846 from bzr+ssh://bazaar.launchpad.net/~mvo/apt/lp346386/
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 20d2a02f5..d63195c7d 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -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; |