From 5aa0628ebfe381a9114a0336a4ba75e959cfbed8 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 4 Sep 2016 18:12:03 +0200 Subject: [PATCH] Kill an overflow or two. Or twelve. --- libretro-common/file/file_path.c | 2 +- menu/drivers/nuklear/nk_wnd_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 72f4ab5fe2..ed8095fe7a 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -732,7 +732,7 @@ void fill_short_pathname_representation(char* out_rep, #ifdef HAVE_COMPRESSION last_slash = find_last_slash(path_short); - if(last_slash != NULL) + if (last_slash != NULL) { /* We handle paths like: * /path/to/file.7z#mygame.img diff --git a/menu/drivers/nuklear/nk_wnd_main.c b/menu/drivers/nuklear/nk_wnd_main.c index 94113e5642..e8c44f5f33 100644 --- a/menu/drivers/nuklear/nk_wnd_main.c +++ b/menu/drivers/nuklear/nk_wnd_main.c @@ -32,7 +32,7 @@ static char* out; static char core[PATH_MAX_LENGTH] = {0}; static char content[PATH_MAX_LENGTH] = {0}; -float ratio[] = {0.85f, 0.15f}; +float ratio[] = {0.85f, 0.15f, 0f}; /* TODO: what should this be? */ void nk_wnd_main(nk_menu_handle_t *nk, const char* title) {