From 7cfd9968020c8b2d970911f0f54f7aa4dc1f523f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 21 Sep 2019 01:41:56 +0200 Subject: [PATCH] Add return value to fill_pathname_noext --- libretro-common/file/file_path.c | 4 ++-- libretro-common/include/file/file_path.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 431ed38d4b..8548b54a7f 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -389,11 +389,11 @@ void fill_pathname(char *out_path, const char *in_path, * present in 'in_path', it will be ignored. * */ -void fill_pathname_noext(char *out_path, const char *in_path, +size_t fill_pathname_noext(char *out_path, const char *in_path, const char *replace, size_t size) { strlcpy(out_path, in_path, size); - strlcat(out_path, replace, size); + return strlcat(out_path, replace, size); } char *find_last_slash(const char *str) diff --git a/libretro-common/include/file/file_path.h b/libretro-common/include/file/file_path.h index 5b7c226639..0a50416dbe 100644 --- a/libretro-common/include/file/file_path.h +++ b/libretro-common/include/file/file_path.h @@ -259,7 +259,7 @@ void fill_str_dated_filename(char *out_filename, * present in 'in_path', it will be ignored. * */ -void fill_pathname_noext(char *out_path, const char *in_path, +size_t fill_pathname_noext(char *out_path, const char *in_path, const char *replace, size_t size); /**