Document fork lineage
Don't call strlen(NULL) when invoked with no command line arguments.
Zero-initialize the buffer; check the return values of ec2_read_flash()
and ec2_read_flash_scratchpad().
Make ec2writeflash handle the port argument the same way ec2readflash does.
Print a message when erasing locked flash
Suppress debug output.
Compare the length of each received USB message to the length byte it
contains, and print a warning messaeg if the lengths do not match.
Don't call strncpy() with overlapping arguments when called as
ec2_connect(obj, obj->port) from c2_erase_flash().  Found by valgrind.
In c2_read_flash(), check that we get the expected 0x0d terminator.
Attempts to read a protected flash now fail rather than silently
returning zeroes.
Need unistd.h for usleep()
In read_usb(), don't print or memcpy the contents of the receive
buffer if the read failed.  Also, check lengths and print warnings if
they are inconsistent.
Read and discard the response to the final FF command.  Otherwise it
can remain buffered on the EC3 and be unexpectedly returned to the
next program that attempts to use the EC3.  With this change,
"ec2device --port USB" finally works reliably on NetBSD through
an EHCI and a hub.
Merge branch 'master' of github.com:gson1703/ec2-newer

Conflicts:
	src/ec2drv/ec2drv.c
Merge pull request #7 from gson1703/master

Merge gson1703:master fork