From 8cd0e5130b87b41e1bee70d24e151be8defc1dd2 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 20 Jul 2014 21:42:49 +0200 Subject: [PATCH] Use fill_pathname_join in core_info_get_custom_config --- frontend/info/core_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/info/core_info.c b/frontend/info/core_info.c index eebcf26dcd..dfba8b4f7d 100644 --- a/frontend/info/core_info.c +++ b/frontend/info/core_info.c @@ -489,7 +489,7 @@ const char *core_info_get_custom_config(const char *core_id, char *buffer, size_ if (!core_id || !buffer || !buffer_length) return 0; - snprintf(buffer, buffer_length, "%s/%s", core_config_path, path_basename(core_id)); + fill_pathname_join(buffer, core_config_path, path_basename(core_id), buffer_length); fill_pathname(buffer, buffer, ".cfg", buffer_length); return buffer; }