summaryrefslogtreecommitdiff
path: root/src/fr-command-7z.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-7z.c')
-rw-r--r--src/fr-command-7z.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-7z.c b/src/fr-command-7z.c
index 297ba1b..0b784f7 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -106,7 +106,7 @@ list__process_line (char *line,
strncpy (version, ver_start, ver_len);
version[ver_len] = 0;
- if (strcmp (version, "4.55") < 0)
+ if ((strcmp (version, "4.55") < 0) && (ver_len > 1) && (version[1] == '.'))
p7z_comm->old_style = TRUE;
else
p7z_comm->old_style = FALSE;