mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
use place holder for ascii code 0
=> 0 terminates a C string => bad for linux, because linux copies the messages via strcpy to the user-space
This commit is contained in:
parent
b7665a1547
commit
f4bbedd3c8
1 changed files with 4 additions and 0 deletions
|
@ -62,6 +62,10 @@ int kputchar(int c)
|
|||
{
|
||||
int pos;
|
||||
|
||||
/* add place holder for end of string */
|
||||
if (!c)
|
||||
c = '?';
|
||||
|
||||
if (early_print != NO_EARLY_PRINT)
|
||||
spinlock_irqsave_lock(&olock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue