diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2009-08-09 10:22:53 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2009-08-09 10:22:53 +0200 |
commit | 472e2c3aa9c8ea38c2b5f0639bdb09eadb7ffca4 (patch) | |
tree | d2413340e76641ec7ac1c66ece15367513100ffd /apt-inst | |
parent | f64196e879103151f3b90ba423dc74ef61ea8c76 (diff) | |
download | apt-472e2c3aa9c8ea38c2b5f0639bdb09eadb7ffca4.tar.gz |
[apt-inst/contrib/arfile.cc] use sizeof instead strlen
Patch from Marius Vollmer, thanks! (Closes: #504325)
Diffstat (limited to 'apt-inst')
-rw-r--r-- | apt-inst/contrib/arfile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-inst/contrib/arfile.cc b/apt-inst/contrib/arfile.cc index 7c85f2e86..e6c63d1ab 100644 --- a/apt-inst/contrib/arfile.cc +++ b/apt-inst/contrib/arfile.cc @@ -96,7 +96,7 @@ bool ARArchive::LoadHeaders() char S[300]; unsigned long Len; if (StrToNum(Head.Name+3,Len,sizeof(Head.Size)-3) == false || - Len >= strlen(S)) + Len >= sizeof(S)) { delete Memb; return _error->Error(_("Invalid archive member header")); |