From 5c9451f7e03edf59a3066853ae544c9d120bf90a Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 14 Apr 2010 12:23:30 +0800 Subject: [PATCH] Fixed logging to support 8-charater identifiers --- Kernel/logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/logging.c b/Kernel/logging.c index 6eac2330..18f75fb6 100644 --- a/Kernel/logging.c +++ b/Kernel/logging.c @@ -29,9 +29,9 @@ typedef struct sLogEntry struct sLogEntry *Next; struct sLogEntry *LevelNext; Sint64 Time; - char Ident[8]; int Level; int Length; + char Ident[9]; char Data[]; } tLogEntry; typedef struct sLogList @@ -83,7 +83,7 @@ void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args) ent = malloc(sizeof(tLogEntry)+len+1); ent->Time = now(); - strncpy(ent->Ident, Ident, 7); + strncpy(ent->Ident, Ident, 8); ent->Level = Level; ent->Length = len; vsnprintf( ent->Data, 256, Format, Args ); -- 2.20.1