From e82bdb118257ddea01a26f0c5503e06d17ae8794 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 13 May 2005 17:51:05 +0000 Subject: * fix for output of the description and the debTranslationsIndex::Exists() --- cmdline/apt-cache.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmdline/apt-cache.cc') diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index 7f9936dfc..9293a9858 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1228,9 +1228,7 @@ bool DisplayRecord(pkgCache::VerIterator V) // Strip the Description unsigned char *DescP = (unsigned char*)strstr((char*)Buffer, "Description:"); *DescP='\0'; - - // Write all the rest - if (fwrite(Buffer,1,V.FileList()->Size+1,stdout) < (size_t)(V.FileList()->Size+1)) + if (write(STDOUT_FILENO,Buffer, strlen((char*)Buffer)+1) != strlen((char *)Buffer)+1) { delete [] Buffer; return false; -- cgit v1.2.3-70-g09d2