91ec19533d
Zipper consists only of a single window, displaying the contents of the selected archive. Currently, you can view and extract .tar, .tar.gz, .tar.bz2, .rar, .lha, .lhz, .zip and .7z archives. Further it allows to create .tar.gz archives. OK landry@
16 lines
660 B
Plaintext
16 lines
660 B
Plaintext
$OpenBSD: patch-RarArchive_m,v 1.1.1.1 2011/07/19 13:58:02 sebastia Exp $
|
|
|
|
Fix the offset of the parsed output from the external binary.
|
|
|
|
--- RarArchive.m.orig Wed Apr 27 17:21:01 2011
|
|
+++ RarArchive.m Wed Apr 27 17:21:13 2011
|
|
@@ -93,7 +93,7 @@ static NSData *_magicBytes;
|
|
NSArray *lines = [string componentsSeparatedByString:@"\n"];
|
|
|
|
// take out first 9 lines (header) and last 3 lines (footer)
|
|
- lines = [lines subarrayWithRange:NSMakeRange(9, [lines count] - 9)];
|
|
+ lines = [lines subarrayWithRange:NSMakeRange(8, [lines count] - 8)];
|
|
lines = [lines subarrayWithRange:NSMakeRange(0, [lines count] - 4)];
|
|
|
|
lineCount = [lines count];
|