summaryrefslogtreecommitdiff
path: root/wiretap/logcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/logcat.c')
-rw-r--r--wiretap/logcat.c4
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;