diff options
author | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
---|---|---|
committer | wbx <wbx@hydrogenium.(none)> | 2009-05-17 14:41:34 +0200 |
commit | 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch) | |
tree | b9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/aircrack-ng/patches/patch-src_airodump-ng_c |
Initial import
Diffstat (limited to 'package/aircrack-ng/patches/patch-src_airodump-ng_c')
-rw-r--r-- | package/aircrack-ng/patches/patch-src_airodump-ng_c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/aircrack-ng/patches/patch-src_airodump-ng_c b/package/aircrack-ng/patches/patch-src_airodump-ng_c new file mode 100644 index 000000000..989f0274d --- /dev/null +++ b/package/aircrack-ng/patches/patch-src_airodump-ng_c @@ -0,0 +1,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) |