diff options
author | infirit <[email protected]> | 2014-11-19 16:44:25 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-19 19:36:03 +0100 |
commit | e17e8a657d8ab58f5f122bb10a1fc065f6533f62 (patch) | |
tree | 92612df3a53a56992fa43d2a78d238bac90d0d93 /src/fr-window.c | |
parent | 4951d61a5d544ac07d194194f789d6bdf6f7c835 (diff) | |
download | engrampa-e17e8a657d8ab58f5f122bb10a1fc065f6533f62.tar.bz2 engrampa-e17e8a657d8ab58f5f122bb10a1fc065f6533f62.tar.xz |
Pointer arithmetic fixes for end of string access
Based on FR commit: 3d7fa24ca267e333d7406eff38ec02b519110ecc
From: Iain Nicol <[email protected]>
Gnome bug: http://bugzilla.gnome.org/show_bug.cgi?id=651416
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-window.c b/src/fr-window.c index e36c9d3..65e99de 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -1216,7 +1216,7 @@ fr_window_dir_exists_in_archive (FrWindow *window, return TRUE; } else if (fdata->dir - && (fdata->full_path[strlen (fdata->full_path)] != '/') + && (fdata->full_path[strlen (fdata->full_path) -1] != '/') && (strncmp (dir_name, fdata->full_path, dir_name_len - 1) == 0)) { return TRUE; |