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 fbce9cf..27eb703 100644
--- a/src/fr-command-7z.c
+++ b/src/fr-command-7z.c
@@ -159,7 +159,7 @@ list__process_line (char *line,
fdata->original_path = g_strdup (fields[1]);
fdata->full_path = g_strconcat ((fdata->original_path[0] != '/') ? "/" : "",
fdata->original_path,
- (fdata->dir && (fdata->original_path[strlen (fdata->original_path - 1)] != '/')) ? "/" : "",
+ (fdata->dir && (fdata->original_path[strlen (fdata->original_path) - 1] != '/')) ? "/" : "",
NULL);
}
else if (strcmp (fields[0], "Folder") == 0) {