raspberrypi: fix math inside of sizeof

Move the subtraction of 1 for terminator outside of
sizeof operator.

Closes #2731.
This commit is contained in:
Gedare Bloom
2017-01-19 15:37:13 -05:00
parent 70e8abf391
commit 2126789736

View File

@@ -95,7 +95,7 @@ void bsp_console_select( void )
opt = rpi_cmdline_get_arg( "--console=" );
if ( opt ) {
if ( strncmp( opt, "fbcons", sizeof( "fbcons" - 1 ) ) == 0 ) {
if ( strncmp( opt, "fbcons", sizeof( "fbcons" ) - 1 ) == 0 ) {
if ( rpi_video_is_initialized() > 0 ) {
Console_Port_Minor = BSP_CONSOLE_FB;
BSPPrintkPort = BSP_CONSOLE_FB;