From 90efb2c10c752ebaaffa41c02c19b6936ced3a96 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 7 Jun 2015 16:49:05 +0200 Subject: [PATCH] (XMB) Cut down on strlcpy/strlcat usage --- menu/drivers/xmb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 7444a683ad..a06d71b244 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1665,12 +1665,10 @@ static void xmb_context_reset_horizontal_list(xmb_handle_t *xmb, } } - strlcpy(texturepath, iconpath, sizeof(texturepath)); - strlcat(texturepath, core_id, sizeof(texturepath)); + fill_pathname_join(texturepath, iconpath, core_id, sizeof(texturepath)); strlcat(texturepath, ".png", sizeof(texturepath)); - strlcpy(content_texturepath, iconpath, sizeof(content_texturepath)); - strlcat(content_texturepath, core_id, sizeof(content_texturepath)); + fill_pathname_join(content_texturepath, iconpath, core_id, sizeof(content_texturepath)); strlcat(content_texturepath, "-content.png", sizeof(content_texturepath)); node->alpha = 0;