diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/initlog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/initlog.c b/src/initlog.c index ae110675..20316095 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -249,7 +249,10 @@ int logLine(struct logInfo *logEnt) { ) { DDEBUG("starting daemon failed, pooling entry %d\n",logEntries); logData=realloc(logData,(logEntries+1)*sizeof(struct logInfo)); - logData[logEntries]= (*logEnt); + logData[logEntries].fac = logEnt->fac; + logData[logEntries].pri = logEnt->pri; + logData[logEntries].cmd = strdup(logEnt->cmd); + logData[logEntries].line = strdup(logEnt->line); logEntries++; } else { if (logEntries>0) { |