Ericsson ENB log reader: Check the whole line for the magic string.

This commit is contained in:
Anders Broman 2021-11-02 21:53:34 +01:00 committed by Wireshark GitLab Utility
parent 5bb521aa52
commit 94b28aa79a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ eri_enb_log_open(wtap *wth, int *err, gchar **err_info)
return WTAP_OPEN_NOT_MINE;
}
if (g_strstr_len(line1, strlen(eri_enb_log_magic), eri_enb_log_magic) == NULL)
if (g_strstr_len(line1, sizeof(line1), eri_enb_log_magic) == NULL)
{
return WTAP_OPEN_NOT_MINE;
}