summaryrefslogtreecommitdiff
path: root/package/aircrack-ng/patches/patch-src_aircrack-ng_c
blob: a852fd7621687cc36a04035d2e071ce6bf10203f (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
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- aircrack-ng-1.0-rc3.orig/src/aircrack-ng.c	2009-03-26 22:01:02.000000000 +0100
+++ aircrack-ng-1.0-rc3/src/aircrack-ng.c	2009-05-01 15:53:30.000000000 +0200
@@ -245,7 +245,7 @@ void clean_exit(int ret)
 	int child_pid;
 
 	char tmpbuf[128];
-	bzero(tmpbuf, 128);
+	memset(tmpbuf, 0, 128);
 
 	if(ret && !opt.is_quiet)
 	{
@@ -738,7 +738,7 @@ void read_thread( void *arg )
 	memset( &rb, 0, sizeof( rb ) );
 	ap_cur = NULL;
 
-	bzero(&pfh, sizeof(struct pcap_file_header));
+	memset(&pfh, 0, sizeof(struct pcap_file_header));
 
 	if( ( buffer = (uchar *) malloc( 65536 ) ) == NULL )
 	{
@@ -1401,8 +1401,8 @@ void read_thread( void *arg )
                                     dlen -=6;
                                 }
 
-				bzero(weight, sizeof(weight));
-				bzero(clear, sizeof(clear));
+				memset(weight, 0, sizeof(weight));
+				memset(clear, 0, sizeof(clear));
 
 				/* calculate keystream */
 				k = known_clear(clear, &clearsize, weight, h80211, dlen);
@@ -4525,7 +4525,7 @@ int main( int argc, char *argv[] )
 
 	/*
 	all_ivs = malloc( (256*256*256) * sizeof(used_iv));
-	bzero(all_ivs, (256*256*256)*sizeof(used_iv));
+	memset(all_ivs, 0, (256*256*256)*sizeof(used_iv));
 	*/
 
 	forceptw = 0;