blob: 989f0274d8feac5d24f3f1b11b8744b2fd69cb9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- aircrack-ng-1.0-rc3.orig/src/airodump-ng.c 2009-03-26 22:01:02.000000000 +0100
+++ aircrack-ng-1.0-rc3/src/airodump-ng.c 2009-05-01 15:52:04.000000000 +0200
@@ -4325,7 +4325,7 @@ int detect_frequencies(struct wif *wi)
printf("Checking available frequencies, this could take few seconds.\n");
frequencies = (int*) malloc((max_freq_num+1) * sizeof(int)); //field for frequencies supported
- bzero(frequencies, (max_freq_num+1) * sizeof(int));
+ memset(frequencies, 0, (max_freq_num+1) * sizeof(int));
for(freq=start_freq; freq<=end_freq; freq+=5)
{
if(wi_set_freq(wi, freq) == 0)
@@ -4388,7 +4388,7 @@ int rearrange_frequencies()
pos = 0;
freqs = malloc(sizeof(int) * (count + 1));
- bzero(freqs, sizeof(int) * (count + 1));
+ memset(freqs, 0, sizeof(int) * (count + 1));
round_done = 0;
while(left > 0)
|