projects
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f732cca
)
* fix a off-by-one error when showing the description
author
Michael Vogt
<michael.vogt@ubuntu.com>
Thu, 20 Oct 2005 14:41:44 +0000
(14:41 +0000)
committer
Michael Vogt
<michael.vogt@ubuntu.com>
Thu, 20 Oct 2005 14:41:44 +0000
(14:41 +0000)
cmdline/apt-cache.cc
patch
|
blob
|
blame
|
history
diff --git
a/cmdline/apt-cache.cc
b/cmdline/apt-cache.cc
index 94cfab14f743ad10d20103b813fa74a9632c73a4..810dbe7b021d8d07747a739372c74442ba226ce7 100644
(file)
--- a/
cmdline/apt-cache.cc
+++ b/
cmdline/apt-cache.cc
@@
-1229,7
+1229,7
@@
bool DisplayRecord(pkgCache::VerIterator V)
const unsigned char *DescP = (unsigned char*)strstr((char*)Buffer, "Description:");
// Write all but Description
- if (fwrite(Buffer,1,DescP - Buffer
-1,stdout) < (size_t)(DescP - Buffer-1
))
+ if (fwrite(Buffer,1,DescP - Buffer
,stdout) < (size_t)(DescP - Buffer
))
{
delete [] Buffer;
return false;