03d was nice for sorting, but bad for inet_aton

This commit is contained in:
Neale Pickett 2011-07-14 19:13:06 -06:00
parent b98a4ef5e8
commit 9a8ccef36c
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ main(int argc, char *argv[])
char fn[9];
FILE *f;
sprintf(fn, "%03d.pcap", octet);
sprintf(fn, "%d.pcap", octet);
if (NULL == (f = fopen(fn, "wb"))) break;
if (-1 == pcap_open_out(&out[octet], f)) break;