File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11420,7 +11420,7 @@ static void materialui_list_insert(void *userdata,
1142011420 * switch */
1142111421 break ;
1142211422 default :
11423- if (string_is_equal (label , "null" ) )
11423+ if (memcmp (label , "null" , 4 ) == 0 )
1142411424 break ;
1142511425#ifdef HAVE_CHEEVOS
1142611426 if (type >= MENU_SETTINGS_CHEEVOS_START &&
Original file line number Diff line number Diff line change @@ -1062,8 +1062,8 @@ static void xmb_draw_text(
10621062 if (a8 == 0 )
10631063 return ;
10641064
1065- if ( string_is_equal ( str , "null" )
1066- || string_is_equal ( str , "OFF" ))
1065+ if ( ( memcmp ( str , "null" , 4 ) == 0 && str [ 4 ] == '\0' )
1066+ || ( memcmp ( str , "OFF" , 3 ) == 0 && str [ 3 ] == '\0' ))
10671067 a8 = 0x7F * alpha ;
10681068
10691069 color = FONT_COLOR_RGBA (
@@ -1548,7 +1548,7 @@ static void xmb_set_thumbnail_content(void *data, const char *s)
15481548 }
15491549 }
15501550#endif
1551- else if (string_is_equal (s , "imageviewer ") )
1551+ else if (memcmp (s , "imageviewer ", sizeof (" imageviewer ")) == 0 )
15521552 {
15531553 /* Filebrowser image updates */
15541554 menu_entry_t entry ;
@@ -4975,7 +4975,7 @@ static int xmb_draw_item(
49754975 if (!string_is_empty (entry .value ))
49764976 {
49774977 bool found = false;
4978- if (string_is_equal (entry .value , "..." ) )
4978+ if (memcmp (entry .value , "..." , 4 ) == 0 )
49794979 found = true;
49804980 else if (string_starts_with_size (entry .value , "(" , STRLEN_CONST ("(" ))
49814981 && string_ends_with (entry .value , ")" ))
You can’t perform that action at this time.
0 commit comments