@@ -1464,7 +1464,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
14641464 for (i = 0 ; menu_ctx_drivers [i ]; i ++ )
14651465 {
14661466 const char * opt = menu_ctx_drivers [i ]-> ident ;
1467- * len += STRLEN_CONST ( menu_ctx_drivers [ i ] -> ident ) + 1 ;
1467+ * len += strlen ( opt ) + 1 ;
14681468
14691469 /* Don't allow the user to set menu driver to "null" using the UI.
14701470 * Can prevent the user from locking him/herself out of the program. */
@@ -1477,7 +1477,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
14771477 for (i = 0 ; camera_drivers [i ]; i ++ )
14781478 {
14791479 const char * opt = camera_drivers [i ]-> ident ;
1480- * len += STRLEN_CONST ( camera_drivers [ i ] -> ident ) + 1 ;
1480+ * len += strlen ( opt ) + 1 ;
14811481
14821482 string_list_append (s , opt , attr );
14831483 }
@@ -1487,7 +1487,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
14871487 for (i = 0 ; bluetooth_drivers [i ]; i ++ )
14881488 {
14891489 const char * opt = bluetooth_drivers [i ]-> ident ;
1490- * len += STRLEN_CONST ( bluetooth_drivers [ i ] -> ident ) + 1 ;
1490+ * len += strlen ( opt ) + 1 ;
14911491
14921492 string_list_append (s , opt , attr );
14931493 }
@@ -1498,7 +1498,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
14981498 for (i = 0 ; wifi_drivers [i ]; i ++ )
14991499 {
15001500 const char * opt = wifi_drivers [i ]-> ident ;
1501- * len += STRLEN_CONST ( wifi_drivers [ i ] -> ident ) + 1 ;
1501+ * len += strlen ( opt ) + 1 ;
15021502
15031503 string_list_append (s , opt , attr );
15041504 }
@@ -1508,7 +1508,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15081508 for (i = 0 ; location_drivers [i ]; i ++ )
15091509 {
15101510 const char * opt = location_drivers [i ]-> ident ;
1511- * len += STRLEN_CONST ( location_drivers [ i ] -> ident ) + 1 ;
1511+ * len += strlen ( opt ) + 1 ;
15121512
15131513 string_list_append (s , opt , attr );
15141514 }
@@ -1517,7 +1517,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15171517 for (i = 0 ; audio_drivers [i ]; i ++ )
15181518 {
15191519 const char * opt = audio_drivers [i ]-> ident ;
1520- * len += STRLEN_CONST ( audio_drivers [ i ] -> ident ) + 1 ;
1520+ * len += strlen ( opt ) + 1 ;
15211521
15221522 string_list_append (s , opt , attr );
15231523 }
@@ -1527,7 +1527,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15271527 for (i = 0 ; microphone_drivers [i ]; i ++ )
15281528 {
15291529 const char * opt = microphone_drivers [i ]-> ident ;
1530- * len += STRLEN_CONST ( microphone_drivers [ i ] -> ident ) + 1 ;
1530+ * len += strlen ( opt ) + 1 ;
15311531
15321532 string_list_append (s , opt , attr );
15331533 }
@@ -1537,7 +1537,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15371537 for (i = 0 ; audio_resampler_driver_find_handle (i ); i ++ )
15381538 {
15391539 const char * opt = audio_resampler_driver_find_ident (i );
1540- * len += STRLEN_CONST ( audio_resampler_driver_find_ident ( i ) ) + 1 ;
1540+ * len += strlen ( opt ) + 1 ;
15411541
15421542 string_list_append (s , opt , attr );
15431543 }
@@ -1546,7 +1546,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15461546 for (i = 0 ; video_drivers [i ]; i ++ )
15471547 {
15481548 const char * opt = video_drivers [i ]-> ident ;
1549- * len += STRLEN_CONST ( video_drivers [ i ] -> ident ) + 1 ;
1549+ * len += strlen ( opt ) + 1 ;
15501550
15511551 /* Don't allow the user to set video driver to "null" using the UI.
15521552 * Can prevent the user from locking him/herself out of the program. */
@@ -1558,7 +1558,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15581558 for (i = 0 ; input_drivers [i ]; i ++ )
15591559 {
15601560 const char * opt = input_drivers [i ]-> ident ;
1561- * len += STRLEN_CONST ( input_drivers [ i ] -> ident ) + 1 ;
1561+ * len += strlen ( opt ) + 1 ;
15621562
15631563 /* Don't allow the user to set input driver to "null" using the UI.
15641564 * Can prevent the user from locking him/herself out of the program. */
@@ -1571,7 +1571,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15711571 for (i = 0 ; hid_drivers [i ]; i ++ )
15721572 {
15731573 const char * opt = hid_drivers [i ]-> ident ;
1574- * len += STRLEN_CONST ( hid_drivers [ i ] -> ident ) + 1 ;
1574+ * len += strlen ( opt ) + 1 ;
15751575
15761576 /* Don't allow the user to set input HID driver to "null" using the UI.
15771577 * Can prevent the user from locking him/herself out of the program. */
@@ -1584,7 +1584,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15841584 for (i = 0 ; joypad_drivers [i ]; i ++ )
15851585 {
15861586 const char * opt = joypad_drivers [i ]-> ident ;
1587- * len += STRLEN_CONST ( joypad_drivers [ i ] -> ident ) + 1 ;
1587+ * len += strlen ( opt ) + 1 ;
15881588
15891589 /* Don't allow the user to set input joypad driver to "null" using the UI.
15901590 * Can prevent the user from locking him/herself out of the program. */
@@ -1596,7 +1596,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
15961596 for (i = 0 ; record_drivers [i ]; i ++ )
15971597 {
15981598 const char * opt = record_drivers [i ]-> ident ;
1599- * len += STRLEN_CONST ( record_drivers [ i ] -> ident ) + 1 ;
1599+ * len += strlen ( opt ) + 1 ;
16001600
16011601 string_list_append (s , opt , attr );
16021602 }
@@ -1605,7 +1605,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
16051605 for (i = 0 ; midi_driver_find_handle (i ); i ++ )
16061606 {
16071607 const char * opt = midi_drivers [i ]-> ident ;
1608- * len += STRLEN_CONST ( midi_drivers [ i ] -> ident ) + 1 ;
1608+ * len += strlen ( opt ) + 1 ;
16091609
16101610 string_list_append (s , opt , attr );
16111611 }
@@ -1615,7 +1615,7 @@ struct string_list *string_list_new_special(enum string_list_type type,
16151615 for (i = 0 ; cloud_sync_drivers [i ]; i ++ )
16161616 {
16171617 const char * opt = cloud_sync_drivers [i ]-> ident ;
1618- * len += STRLEN_CONST ( cloud_sync_drivers [ i ] -> ident ) + 1 ;
1618+ * len += strlen ( opt ) + 1 ;
16191619
16201620 string_list_append (s , opt , attr );
16211621 }
0 commit comments