diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-07-26 16:54:08 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-07-26 16:54:08 +0000 |
commit | db5add1cc3bed4683206f859ee20ee6eb5969ddf (patch) | |
tree | 8d8091f7744ce05f399f5fd2fc6c7e7f3847b959 /randpkt.c | |
parent | a64a4043c3bfbde4f22782253d3ab5a64e416f98 (diff) |
From Brice Augustin: Use the correct packet length in randpkt.
Build randpkt.exe by default under Windows.
svn path=/trunk/; revision=15092
Diffstat (limited to 'randpkt.c')
-rw-r--r-- | randpkt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -515,7 +515,7 @@ main(int argc, char **argv) pkthdr.len = len_this_pkt; pkthdr.ts.tv_sec = i; /* just for variety */ - for (j = example->sample_length; j < len_random; j++) { + for (j = example->sample_length; j < len_this_pkt; j++) { /* Add format strings here and there */ if ((int) (100.0*rand()/(RAND_MAX+1.0)) < 3 && j < (len_random - 3)) { memcpy(&buffer[j], "%s", 3); |