diff options
author | sc0w <[email protected]> | 2016-05-02 20:50:46 +0200 |
---|---|---|
committer | sc0w <[email protected]> | 2016-05-02 20:50:46 +0200 |
commit | 1af3e43014341b5112e90dd44b7c5504a62bf0bc (patch) | |
tree | d5d61733a09998ef8491ee80961b34e05a48178a /src/glib-utils.c | |
parent | 45c41e8544c220295280d628490ebbe9b908414f (diff) | |
download | engrampa-1af3e43014341b5112e90dd44b7c5504a62bf0bc.tar.bz2 engrampa-1af3e43014341b5112e90dd44b7c5504a62bf0bc.tar.xz |
fix extracting files with single-character names. #125
Diffstat (limited to 'src/glib-utils.c')
-rw-r--r-- | src/glib-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glib-utils.c b/src/glib-utils.c index 9761091..27d4548 100644 --- a/src/glib-utils.c +++ b/src/glib-utils.c @@ -751,7 +751,7 @@ _g_path_get_base_name (const char *path, return _g_path_get_file_name (path); base_dir_len = strlen (base_dir); - if (strlen (path) <= base_dir_len) + if (strlen (path) < base_dir_len) return NULL; base_path = path + base_dir_len; |