1
0
Fork 0
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:
Stefan Lankes 2015-06-29 09:46:03 +02:00
parent b7665a1547
commit f4bbedd3c8

View file

@ -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);