Add strlen casts.

Change-Id: Icaf80f060c476dd7259c04c4cce4123025ef1dab
Reviewed-on: https://code.wireshark.org/review/3012
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2014-07-11 14:01:26 -07:00
parent d1d88f575d
commit e2038e0300
1 changed files with 2 additions and 2 deletions

View File

@ -439,12 +439,12 @@ static gboolean logcat_dump_text(wtap_dumper *wdh,
if (pseudo_header->logcat.version == 1) {
priority = get_priority(log_entry->msg[0]);
tag = log_entry->msg + 1;
msg_pre_skip = 1 + strlen(tag) + 1;
msg_pre_skip = 1 + (gint) strlen(tag) + 1;
msg_begin = log_entry->msg + msg_pre_skip;
} else if (pseudo_header->logcat.version == 2) {
priority = get_priority(log_entry_v2->msg[0]);
tag = log_entry_v2->msg + 1;
msg_pre_skip = 1 + strlen(tag) + 1;
msg_pre_skip = 1 + (gint) strlen(tag) + 1;
msg_begin = log_entry_v2->msg + msg_pre_skip;
} else {
*err = WTAP_ERR_UNSUPPORTED;