diff options
Diffstat (limited to 'c/src/lib/libbsp/shared/console.c')
-rw-r--r-- | c/src/lib/libbsp/shared/console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/shared/console.c b/c/src/lib/libbsp/shared/console.c index d0300654a5..d2261723f8 100644 --- a/c/src/lib/libbsp/shared/console.c +++ b/c/src/lib/libbsp/shared/console.c @@ -117,12 +117,12 @@ void console_register_devices( */ Console_Port_Data = realloc( Console_Port_Data, - Console_Port_Count * sizeof(console_tbl *) + Console_Port_Count * sizeof(console_data) ); if ( Console_Port_Data == NULL ) { bsp_fatal( BSP_FATAL_CONSOLE_NO_MEMORY_2 ); } - memset(&Console_Port_Data, '\0', Console_Port_Count * sizeof(console_tbl *)); + memset(Console_Port_Data, '\0', Console_Port_Count * sizeof(console_data)); /* * Now add the new devices at the end. |