diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2014-03-19 22:51:39 +0100 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2014-03-20 08:40:08 +0000 |
commit | f65513291333b5912a16b45bfa09eed05eee3a6d (patch) | |
tree | d7178277a7e645c222a52ded482a88962bcf3262 /wiretap/file_access.c | |
parent | 4a51f624bf1028ddc7c73fd665ad292ff344060d (diff) |
the entries for file types with magic numbers are
0...heuristic_open_routine_idx-1
at the moment, we loop over all entries of the open_info_arr
Change-Id: Iabca32521a066d994b1c840b7514faa983375f0c
Reviewed-on: https://code.wireshark.org/review/748
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r-- | wiretap/file_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 9a43ed2c5c..bf25186c15 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -833,7 +833,7 @@ wtap* wtap_open_offline(const char *filename, unsigned int type, int *err, char } /* Try all file types that support magic numbers */ - for (i = 0; i < open_info_arr->len; i++) { + for (i = 0; i < heuristic_open_routine_idx; i++) { /* Seek back to the beginning of the file; the open routine for the previous file type may have left the file position somewhere other than the beginning, and the |