forked from Imagelibrary/rtems
raspberrypi: fix math inside of sizeof
Move the subtraction of 1 for terminator outside of sizeof operator. Closes #2731.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user