[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeutils/ark/plugins/libarchive
From:       Ingmar Vanhassel <ingmar () exherbo ! org>
Date:       2011-03-03 13:59:56
Message-ID: 20110303135956.E2397AC8C2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1223552 by ingmarvanhassel:

Fix build with libarchive 3.0

libarchive 3.0 no longer defines ARCHIVE_DEFAULT_BYTES_PER_BLOCK,
http://code.google.com/p/libarchive/source/browse/trunk/libarchive/archive.h?r=2455#166

All code examples that libarchive ships, as well as its own functionality
tests hardcode this constant, too.

 M  +2 -2      libarchivehandler.cpp  


--- trunk/KDE/kdeutils/ark/plugins/libarchive/libarchivehandler.cpp #1223551:1223552
@@ -670,7 +670,7 @@
 
 void LibArchiveInterface::copyData(const QString& filename, struct archive *dest, bool partialprogress)
 {
-    char buff[ARCHIVE_DEFAULT_BYTES_PER_BLOCK];
+    char buff[10240];
     ssize_t readBytes;
     QFile file(filename);
 
@@ -700,7 +700,7 @@
 
 void LibArchiveInterface::copyData(struct archive *source, struct archive *dest, bool partialprogress)
 {
-    char buff[ARCHIVE_DEFAULT_BYTES_PER_BLOCK];
+    char buff[10240];
     ssize_t readBytes;
 
     readBytes = archive_read_data(source, buff, sizeof(buff));
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic