Changeset 2327

Show
Ignore:
Timestamp:
05/12/07 14:27:13 (2 years ago)
Author:
mentor
Message:

Fix overflow introduced in previous commit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/madwifi-ng-refcount/ath_rate/minstrel/minstrel.c

    r2326 r2327  
    549549                        sn->rs_sampleTable[i][column_index] = 0; 
    550550 
    551                 for (i = 0; i <= num_sample_rates; i++) { 
     551                for (i = 0; i < num_sample_rates; i++) { 
    552552                        get_random_bytes(random_bytes, 8); 
    553553                        newIndex = (i + (int)(random_bytes[i & 7])) % num_sample_rates;