(Menu/disp) Get rid of unnecessary strlcpys in disp/menu code

This commit is contained in:
twinaphex 2014-09-01 02:00:51 +02:00
parent b451958903
commit 140db3d689
3 changed files with 0 additions and 9 deletions

View File

@ -579,9 +579,6 @@ static void rgui_render(void)
char type_str_buf[64];
bool selected = i == driver.menu->selection_ptr;
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
menu_ticker_line(entry_title_buf, RGUI_TERM_WIDTH - (w + 1 + 2),
g_extern.frame_count / 15, path, selected);
menu_ticker_line(type_str_buf, w, g_extern.frame_count / 15,

View File

@ -420,9 +420,6 @@ static void rmenu_render(void)
char type_str_buf[64];
bool selected = i == menu->selection_ptr;
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
menu_ticker_line(entry_title_buf, RMENU_TERM_WIDTH - (w + 1 + 2), g_extern.frame_count / 15, path, selected);
menu_ticker_line(type_str_buf, w, g_extern.frame_count / 15, type_str, selected);

View File

@ -639,9 +639,6 @@ static void rmenu_xui_render(void)
char type_str_buf[64];
bool selected = i == driver.menu->selection_ptr;
strlcpy(entry_title_buf, path, sizeof(entry_title_buf));
strlcpy(type_str_buf, type_str, sizeof(type_str_buf));
#if 0
if ((type == MENU_FILE_PLAIN || type == MENU_FILE_DIRECTORY))
menu_ticker_line(entry_title_buf, RXUI_TERM_WIDTH - (w + 1 + 2), g_extern.frame_count / 15, path, selected);