From 6eebbfd8ae34ba2fe2eee7bc468676c07139b4c4 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Fri, 26 Aug 2016 11:33:04 -0400 Subject: [PATCH] use const delimiter and remove pointer arithmetic --- libretro-common/file/file_path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index fd6fa57578..7bc768a4e1 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -99,7 +99,7 @@ const char *path_get_archive_delim(const char *path) { #ifdef HAVE_COMPRESSION const char *last = find_last_slash(path); - char *delim = NULL; + const char *delim = NULL; #ifdef HAVE_ZLIB if (last) @@ -482,7 +482,7 @@ void path_basedir(char *path) #ifdef HAVE_COMPRESSION /* We want to find the directory with the zipfile in basedir. */ - last = path + (path_get_archive_delim(path) - path); + last = (char*)path_get_archive_delim(path); if (last) *last = '\0'; #endif