summaryrefslogtreecommitdiff
path: root/src/fr-command-lha.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-lha.c')
-rw-r--r--src/fr-command-lha.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fr-command-lha.c b/src/fr-command-lha.c
index 55a7218..033bdf6 100644
--- a/src/fr-command-lha.c
+++ b/src/fr-command-lha.c
@@ -120,6 +120,11 @@ split_line_lha (char *line)
fields[i++] = g_strdup ("");
line += strlen ("[unknown]");
}
+ else if (strncmp (line, "[Amiga]", 7) == 0) {
+ fields[i++] = g_strdup ("");
+ fields[i++] = g_strdup ("");
+ line += strlen ("[Amiga]");
+ }
scan = eat_spaces (line);
for (; i < n_fields; i++) {
@@ -150,6 +155,9 @@ get_last_field_lha (char *line)
if (strncmp (line, "[unknown]", 9) == 0)
n--;
+ if (strncmp (line, "[Amiga]", 7) == 0)
+ n--;
+
field = eat_spaces (line);
for (i = 0; i < n; i++) {
field = strchr (field, ' ');