(RMenu XUI) Replace some snprintfs with strlcpy

This commit is contained in:
twinaphex 2013-09-19 11:11:51 +02:00
parent 290c6f99cb
commit 66716dc94c

View File

@ -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]) switch(g_settings.input.dpad_emulation[port])
{ {
case ANALOG_DPAD_NONE: case ANALOG_DPAD_NONE:
snprintf(str, sizeof_str, "D-Pad Emulation: None"); strlcpy(str, "D-Pad Emulation: None", sizeof_str);
break; break;
case ANALOG_DPAD_LSTICK: case ANALOG_DPAD_LSTICK:
snprintf(str, sizeof_str, "D-Pad Emulation: Left Stick"); strlcpy(str, "D-Pad Emulation: Left Stick", sizeof_str);
break; break;
case ANALOG_DPAD_RSTICK: case ANALOG_DPAD_RSTICK:
snprintf(str, sizeof_str, "D-Pad Emulation: Right Stick"); strlcpy(str, "D-Pad Emulation: Right Stick", sizeof_str);
break; break;
} }
} }