mirror of https://github.com/dirtbags/fluffy.git
03d was nice for sorting, but bad for inet_aton
This commit is contained in:
parent
b98a4ef5e8
commit
9a8ccef36c
|
@ -109,7 +109,7 @@ main(int argc, char *argv[])
|
||||||
char fn[9];
|
char fn[9];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
sprintf(fn, "%03d.pcap", octet);
|
sprintf(fn, "%d.pcap", octet);
|
||||||
|
|
||||||
if (NULL == (f = fopen(fn, "wb"))) break;
|
if (NULL == (f = fopen(fn, "wb"))) break;
|
||||||
if (-1 == pcap_open_out(&out[octet], f)) break;
|
if (-1 == pcap_open_out(&out[octet], f)) break;
|
||||||
|
|
Loading…
Reference in New Issue