From bd36c9c77dcbd7c6c91159071fa92bdb2d7b0d78 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Mar 2021 22:05:36 +0100 Subject: Add osx-arm64 target --- libretro.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libretro.c') diff --git a/libretro.c b/libretro.c index 165600e..a25fb09 100644 --- a/libretro.c +++ b/libretro.c @@ -833,17 +833,17 @@ bool retro_load_game(const struct retro_game_info* info) extract_directory(main_path, info->path, sizeof(main_path)); if (environ_cb(RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY, &dir) && dir) - strncpy(filename_bios, dir, sizeof(filename_bios)); + strcpy(filename_bios, dir); else - strncpy(filename_bios, main_path, sizeof(filename_bios)); + strcpy(filename_bios, main_path); - strncat(filename_bios, "/gba_bios.bin", sizeof(filename_bios)); + strcat(filename_bios, "/gba_bios.bin"); if (environ_cb(RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY, &dir) && dir) - strncpy(save_path, dir, sizeof(save_path)); + strcpy(save_path, dir); else - strncpy(save_path, main_path, sizeof(save_path)); + strcpy(save_path, main_path); if (load_bios(filename_bios) != 0) { -- cgit v1.2.3