diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-07-11 14:01:26 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-07-11 21:11:17 +0000 |
commit | e2038e03007faaa29f9ed1cb3619e84bd6e03247 (patch) | |
tree | 7c51d641af42777b721ed150f59307feeb412efe /wiretap/logcat.c | |
parent | d1d88f575d58bad338e5760eac62c981cf4753a3 (diff) |
Add strlen casts.
Change-Id: Icaf80f060c476dd7259c04c4cce4123025ef1dab
Reviewed-on: https://code.wireshark.org/review/3012
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'wiretap/logcat.c')
-rw-r--r-- | wiretap/logcat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/logcat.c b/wiretap/logcat.c index 246b9874d0..2cc31e9864 100644 --- a/wiretap/logcat.c +++ b/wiretap/logcat.c @@ -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; |