From f4c22cb23672d8b14ac346d607492cfbcf6c874e Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Wed, 3 Aug 2022 23:54:10 +0200 Subject: [PATCH] (file_path.c) fill_pathname_join - do away with one less strlcat --- libretro-common/file/file_path.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index fef13b5a39..db102ca1e4 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -927,7 +927,10 @@ size_t fill_pathname_join(char *out_path, } } else - strlcat(out_path, PATH_DEFAULT_SLASH(), size); + { + out_path[len] = PATH_DEFAULT_SLASH_C(); + out_path[len+1] = '\0'; + } } return strlcat(out_path, path, size);