summaryrefslogtreecommitdiff
path: root/package/snort/patches/patch-src_output-plugins_spo_unified_c
blob: 9613b7fd06963a236b4d83ff80ccb088387e85b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- snort-2.8.5.1.orig/src/output-plugins/spo_unified.c	2009-08-10 22:41:52.000000000 +0200
+++ snort-2.8.5.1/src/output-plugins/spo_unified.c	2009-12-27 17:22:15.000000000 +0100
@@ -302,7 +302,7 @@ static void UnifiedInitFile(UnifiedConfi
     FileHeader hdr;
     int value;
 
-    bzero(logdir, STD_BUF);
+    memset(logdir, 0, STD_BUF);
     curr_time = time(NULL);
 
     if(data == NULL)
@@ -398,7 +398,7 @@ void RealUnifiedLogAlert(Packet *p, char
     UnifiedConfig *data = (UnifiedConfig *)arg;
     UnifiedAlert alertdata;
 
-    bzero(&alertdata, sizeof(alertdata));
+    memset(&alertdata, 0, sizeof(alertdata));
 
     if(event != NULL)
     {
@@ -483,7 +483,7 @@ void RealUnifiedLogAlert6(Packet *p, cha
     UnifiedConfig *data = (UnifiedConfig *)arg;
     UnifiedIPv6Alert alertdata;
 
-    bzero(&alertdata, sizeof(alertdata));
+    memset(&alertdata, 0, sizeof(alertdata));
 
     if(event != NULL)
     {
@@ -1039,7 +1039,7 @@ void UnifiedInitAlertFile(UnifiedConfig 
     int value;
     UnifiedAlertFileHeader hdr;
 
-    bzero(logdir, STD_BUF);
+    memset(logdir, 0, STD_BUF);
     curr_time = time(NULL);
 
     if(data->nostamp) 
@@ -1167,7 +1167,7 @@ void UnifiedInitLogFile(UnifiedConfig *d
     int value;
     //UnifiedLogFileHeader hdr;
 
-    bzero(logdir, STD_BUF);
+    memset(logdir, 0, STD_BUF);
     curr_time = time(NULL);
 
     if(data == NULL)