From kde-commits Fri Mar 05 01:31:58 2004 From: =?utf-8?q?Lu=C3=ADs=20Pedro=20Coelho?= Date: Fri, 05 Mar 2004 01:31:58 +0000 To: kde-commits Subject: KDE_3_2_BRANCH: kdegraphics/kfile-plugins/ps Message-Id: <20040305013158.D41A9995A () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107845032531263 CVS commit by luis_pedro: Backport of earlier fix (simplified for BRANCH, ie no cleanup): check return value of scanData CCMAIL: 75861-close@bugs.kde.org M +2 -2 kfile_ps.cpp 1.10.2.1 --- kdegraphics/kfile-plugins/ps/kfile_ps.cpp #1.10:1.10.2.1 @@ -67,5 +67,5 @@ bool KPSPlugin::readInfo( KFileMetaInfo& && !_endComments ) { - _dsc->scanData( buf, count ); + if ( !_dsc->scanData( buf, count ) ) break; } fclose( fp );