git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel - So... should remember to initialise structures
[tpg/acess2.git]
/
Kernel
/
logging.c
diff --git
a/Kernel/logging.c
b/Kernel/logging.c
index
1650342
..
cb3c61c
100644
(file)
--- a/
Kernel/logging.c
+++ b/
Kernel/logging.c
@@
-111,6
+111,8
@@
void Log_AddEvent(char *Ident, int Level, char *Format, va_list Args)
{
#define LOG_HDR_LEN (14+1+2+8+2)
char newData[ LOG_HDR_LEN + len + 2 + 1 ];
+ char _ident[9];
+ strncpy(_ident, Ident, 9);
sprintf( newData, "%014lli%s [%+8s] ",
ent->Time, csaLevelCodes[Level], Ident);
strcpy( newData + LOG_HDR_LEN, ent->Data );
UCC
git Repository :: git.ucc.asn.au