$NetBSD: patch-cu,v 1.8 2006/08/02 13:57:23 markd Exp $ --- kioslave/audiocd/audiocd.cpp.orig 2006-05-22 18:06:24.000000000 +0000 +++ kioslave/audiocd/audiocd.cpp @@ -26,8 +26,8 @@ extern "C" { - #include - #include + #include + #include void paranoiaCallback(long, int); #include @@ -857,7 +861,7 @@ void AudioCDProtocol::paranoiaRead( * 2) Only increase in size unless the decrease is %5 of last estimate. * This prevents continues small changes which is just annoying. */ - unsigned long end = lastSector - firstSector; + unsigned long end = lastSector - firstSector + 1; unsigned long cur = currentSector - firstSector; unsigned long estSize = (processed / cur ) * end;