From 66716dc94ccaba84801c6c1233b0752ae44a80f6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Sep 2013 11:11:51 +0200 Subject: [PATCH] (RMenu XUI) Replace some snprintfs with strlcpy --- frontend/menu/rmenu_xui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/menu/rmenu_xui.cpp b/frontend/menu/rmenu_xui.cpp index 3d433da56b..b4afc63eb3 100644 --- a/frontend/menu/rmenu_xui.cpp +++ b/frontend/menu/rmenu_xui.cpp @@ -295,13 +295,13 @@ static void set_dpad_emulation_label(unsigned port, char *str, size_t sizeof_str switch(g_settings.input.dpad_emulation[port]) { case ANALOG_DPAD_NONE: - snprintf(str, sizeof_str, "D-Pad Emulation: None"); + strlcpy(str, "D-Pad Emulation: None", sizeof_str); break; case ANALOG_DPAD_LSTICK: - snprintf(str, sizeof_str, "D-Pad Emulation: Left Stick"); + strlcpy(str, "D-Pad Emulation: Left Stick", sizeof_str); break; case ANALOG_DPAD_RSTICK: - snprintf(str, sizeof_str, "D-Pad Emulation: Right Stick"); + strlcpy(str, "D-Pad Emulation: Right Stick", sizeof_str); break; } }