patch-src_airodump-ng_c 923 B

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