Commit 5e485170 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Detect/report ftell() failure

CID 319007
parent 1692de5e
......@@ -156,6 +156,12 @@ int pktdump(FILE* fp, const char* fname, FILE* good, FILE* bad)
while(!feof(fp)) {
if(offset < 0) {
printf("%s ERROR %d getting offset!\n"
if(fread(&pkdmsg.type, 1, sizeof(pkdmsg.type), fp) != sizeof(pkdmsg.type))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment