- final_msg[OS_MAXSTR - OS_LOG_HEADER -1] = '\0';
-
- snprintf(final_msg, OS_MAXSTR - OS_LOG_HEADER -1,
- "%s WinEvtLog: %s: %s(%d): %s: %s: %s: %s: %s",
- epoch_to_human((int)el->er->TimeGenerated),
- el->name,
- category,
- id,
- source,
- el_user,
- el_domain,
- computer_name,
- descriptive_msg != NULL?descriptive_msg:el_string);
-
- if(SendMSG(logr_queue, final_msg, "WinEvtLog",
- LOCALFILE_MQ) < 0)
- {
+ final_msg[OS_MAXSTR - OS_LOG_HEADER - 1] = '\0';
+
+ snprintf(final_msg, OS_MAXSTR - OS_LOG_HEADER - 1,
+ "%s WinEvtLog: %s: %s(%d): %s: %s: %s: %s: %s",
+ epoch_to_human((int)el->er->TimeGenerated),
+ el->name,
+ category,
+ id,
+ source,
+ el_user,
+ el_domain,
+ computer_name,
+ descriptive_msg != NULL ? descriptive_msg : el_string);
+
+ if (SendMSG(logr_queue, final_msg, "WinEvtLog",
+ LOCALFILE_MQ) < 0) {