Skip to content

Commit

Permalink
2.5.17 (#53)
Browse files Browse the repository at this point in the history
* solve bug extracting mz files. Remove duplicated function call

* add mising SEEK_SET on miine function

---------

Co-authored-by: scanossmining <info@scanoss.com>
  • Loading branch information
mscasso-scanoss and scanoss-cs authored Dec 19, 2023
1 parent 482d5c3 commit 4d0fc26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/minr.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ bool is_binary(char *data, long len)
/* Is it a zip? */
if (*data == 'P' && data[1] == 'K' && data[2] < 9)
return true;

/* Does it contain a chr(0)? */
return (len != strlen(data));
}
Expand Down Expand Up @@ -298,6 +298,7 @@ int load_file(struct minr_job *job, char *path)

fseeko64(fp, 0, SEEK_END);
job->src_ln = ftello64(fp);
fseeko64(fp, 0, SEEK_SET);

if (job->src_ln <= 0)
return FILE_IGNORED;
Expand Down

0 comments on commit 4d0fc26

Please sign in to comment.