dect
/
libpcap
Archived
13
0
Fork 0

From Paolo Abeni: fix a compile problem.

This commit is contained in:
guy 2006-10-05 17:51:01 +00:00
parent 748adf9a88
commit a631fe8a83
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,7 @@ usb_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *u
* a partial information.
* At least until linux 2.6.17 there is no way to set usbmon intenal buffer
* length and default value is 130. */
while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snaplen))
while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot))
{
rawdata[0] = ascii_to_int(string[0]) * 16 + ascii_to_int(string[1]);
rawdata++;
@ -368,6 +368,7 @@ got:
if (pkth.caplen > handle->snapshot)
pkth.caplen = handle->snapshot;
callback(user, &pkth, handle->buffer);
return 1;
}