[file-roller] fixed update of files in .tar.xz archives



commit e0ba1c026bba7e0165d95ff8fc72a195b0dc92f6
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Sep 3 20:09:04 2010 +0200

    fixed update of files in .tar.xz archives
    
    [bug #628717]

 src/fr-command-tar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-command-tar.c b/src/fr-command-tar.c
index 8caeab1..4c214f4 100644
--- a/src/fr-command-tar.c
+++ b/src/fr-command-tar.c
@@ -806,7 +806,7 @@ get_uncompressed_name (FrCommandTar *c_tar,
 		/* X.tar.xz --> X.tar
 		 * (There doesn't seem to be a shorthand suffix) */
 		if (file_extension_is (e_filename, ".tar.xz"))
-			new_name[l - 5] = 0;
+			new_name[l - 3] = 0;
 	}
 	else if (is_mime_type (comm->mime_type, "application/x-lzop-compressed-tar")) {
 		/* X.tzo     -->  X.tar



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]